I added meta box City and Location to my post, but when I calling the endpoint (by WP Rest API) /wp-json/wp/v2/<post_type>/<post_id> it’s not returning my meta data. I tried...
i’ve just find out about the custom field, which makes it possible to add something near a post, but what is the difference between “add_meta_box” and “custom field”? Custom...
I would like to add a custom field that is set by a jquery datepicker ui in the post edit panel. Im new to wordpress, so Im not sure...
Searching for around two days to find an answer to my question, I finally registered for this StackExchange. 🙂 My Question is not simple, so I need to start...
WordPress has several APIs build in: XML-RPC REST API by default they don’t return custom post types or protected meta keys. I want to access the protected meta fields...
I’m planning a site for a client who wants users to be able to filter upcoming events by the following criteria: Type i.e. Comedy, Theatre, Music etc. Date Daily...
I’m trying to read the custom fields set by the user when publishing a new post: function doSomething($post) { $meta = get_post_meta($post->ID); error_log("post meta: ".print_r($meta, true)); } add_action("new_to_publish", "doSomething",...
I want to make selecting a featured post is just by checking a checkbox in edit screen AND be able to retrieve these featured articles from only specific category...
Currently I have the loop listing posts between two dates using the posts_where filter: function filter_where( $where="" ) { $where .= " AND post_date >= '2000-01-01' AND post_date <=...
I’m using custom fields to pull a secondary description. I’d like to use the built in WordPress truncate but can’t seem to figure it out. $desc = get_post_meta($post->ID, "youtube-desc",...