Filter by custom field in custom post type on admin page

I’ve used Advanced Custom Fields to create custom fields for Competition name, answers etc. I’ve made a custom post type for competitions as shown on the image and I used WordPress functions.php to create the columns from my custom fields values. I’m trying to get a “Filter by”-dropdown box with the competitions different names/labels like … Read more

Filtering multiple custom fields with WP REST API 2

I want to filter posts based on multiple acf custom fields with AND relation. Something like this: $args = array( ‘post_type’ => ‘product’, ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => ‘color’, ‘value’ => ‘blue’, ‘compare’ => ‘=’, ), array( ‘key’ => ‘price’, ‘value’ => array( 20, 100 ), ‘type’ => ‘numeric’, ‘compare’ => … Read more