I use Advanced Custom Fields in a post type and I would like to display them in another page. In addition, I would filter them according to 3 categories (3 tabs), for this I used a select field. Here is the query that I made in my template page but I am not able to code the following to display the content of various fields of my post type.
$projets_actuels = get_posts(array(
'post_type' => 'projets',
'meta_key' => 'etat',
'meta_value' => 'actuel'
));
get_posts()function are you looping through the results of that query?foreach ( $projets_actuels as $post )? – developdaly Apr 18 '12 at 21:41