Support

Account

Home Forums ACF PRO problem with wp_query and meta key Reply To: problem with wp_query and meta key

  • alright i needed nearly an hour to find the solution but here is it:

    new WP_Query( array ( 
    				'post_type' => 'product',
    				'posts_per_page' => -1,
    				'meta_query' => array(
    				    array(
    				        'key' => 'nutzer',
    				        'value' => '"'.$user_ID.'"',
    				        'compare' => 'LIKE'
    				    )
    			    )
    ));