How to filter WP_Query for posts having a certain meta-value, without using a Custom Select Query? I have a custom posttype with meta-key: “open”, and meta-value options: “yes” or...
The code below adds a custom input field to the attachments editor. How can I convert the text input to a checkbox and get/set the value of the checkbox...
Edit: Important note for WordPress v4.4 onward This question used a great workaround for the lack of real term meta in older versions of WordPress, but since the release...
i have this custom post_type: tvr_apartment function custom_post_apartment() { $labels = array( 'name' => 'Apartments', 'singular_name' => 'Apartment', 'add_new' => 'Add New', 'add_new_item' => 'Add New Apartment', 'edit_item' =>...
I’m collecting data via a form plugin and saving that data in form of a post with several custom fields. I then display the content of the post and...
I am trying to use the http://www.tinymce.com/ plugin to add a tinymce to my textareas in my meta boxes I have created. I’ve googled other ways and either I...
It seems by default WordPress provides fields for site-title and tagline. I understand how to add (for example) the option to chose a logo, adding add_theme_support( 'custom-logo' ); to...
How can I have the ‘Preview Changes’ working for custom meta boxes? For instance, I just want to test/ preview some text in a custom meta box but I...
I have two meta_keys on a custom post type. I want to be able to query all of these posts, and order them by the two meta_key, one taking...
I am trying to figure out how to replace the value of one advanced custom field with the value from a different custom field. Would anyone be able to...