How to include meta_query in args
-
Hi,
I’m using below code to display posts.
$args = array( 'id' => 'my-list', 'post_type' => 'my_custom_post_type', 'post_staus' => 'publish', 'posts_per_page' => 2, 'init_load' => 2, 'template' => 'my-template', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'upload_type', 'value' => 'user', 'compare' => '=' ) ) ); echo cpt_alm_render($args);
everything is working great, but the results doesn’t get affect by the ‘meta_query’ in the $arg (note: I’m using “Advanced Custom Fields” for meta fields)
PS: @tushargohel thank you for your help in previous issues, I don’t have any other medium to contact you other than this support forum.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to include meta_query in args’ is closed to new replies.