Support

Account

Home Forums ACF PRO query random post by true and false Reply To: query random post by true and false

  • Aha, I understand! Thank you for the explanation!

    Thanks.

    Joe

    There was another comma:

    query_posts(array(
    	'orderby' => 'rand',
    	'showposts' => 1,
    	'meta_query' => array(
    		array(
    			'key' => 'post_in_home_gallery',
    			'compare' => '==',
    			'value' => '1',
    		)
    	)
    ));