skip to Main Content

WordPress ACF field not working in WP_Query

Why does this return all posts; $partner = get_query_var('partner'); echo "Partner ID: ". $partner; // Echoes correctly $args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'meta_query' => array( 'meta_key' => 'partner', 'meta_value' => array($partner), // also $partner (without array)…

VIEW QUESTION
Back To Top
Search