Home › Forums › General Issues › display list of values from one field group › Reply To: display list of values from one field group
This may be a bit flakey as i’m typing on a phone, but perhaps something like the following:
$query_store_args = array(
'post_type' => 'posts',
'cat' => 'store',
'posts_per_page' => -1
);
$query_store = new WP_Query($query_store_args);
if( $query_store->have_posts() ) :
while( $query_store->have_posts() ) : $query_store->the_post();
// code I added above
endwhile;
endif;
Edit: forgot a line
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.