Answers for "acf wp_query custom field"

PHP
0

acf wp_query custom field

// WPQuery using ACF basic fields
$args = array( 
	'post_type'   => 'post',
    'posts_per_page' => '20',
    'meta_key'		=> 'color',
    'meta_value'	=> 'blue' // Can be string or true/false
);
$posts = new WP_Query( $args );
Posted by: Guest on December-30-2021

Browse Popular Code Answers by Language