Only show metabox when date-value in other metabox is over?

Not sure about the linked class – it seems they collect metaboxes immediately and so there is no information regarding what post is being viewed. In general though – yes it is possible. To add a metabox: add_action( ‘add_meta_boxes’, ‘myplugin_add_my_custom_box’,10,2); See the source code here. This add_meta_boxes hook passes two variables: the post type and … Read more

How to filter or search the posts using postmeta tables custom meta fields with wordpress REST API

You will need to add custom query vars: add_filter(‘rest_query_vars’, ‘wpse225850_add_rest_query_vars’); function wpse225850_add_rest_query_vars($query_vars) { $query_vars = array_merge( $query_vars, array(‘meta_key’, ‘meta_value’, ‘meta_compare’) ); return $query_vars; } Now, get your posts at example.com/wp-json/wp/v2/posts?filter[meta_key]=property_featured&filter[meta_value]=1. You can follow this ticket for more info.

Add custom field (value) to search result (without plugin)

WordPress search in posts table. You must change the search query by adding a postmeta table (with LEFT JOIN) and then add your own conditions to WHERE clause. <?php /** * Extend WordPress search to include custom fields * * https://adambalee.com */ /** * Join posts and postmeta tables * * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join */ function cf_search_join( … Read more