Home › Forums › ACF PRO › Group CPT Posts by ACF Select Field › Reply To: Group CPT Posts by ACF Select Field
@maidus – I wasn’t able to get the query for ACF select values to work, so I ended up doing custom taxonomies added to the post type, then doing individual queries for each. Was using this for populating the Isotope jQuery plugin for filtering products.
<?php $headstyles = get_categories('taxonomy=mag_filter&post_type=product'); ?>
<?php foreach ($headstyles as $headstyle) : ?>
<div class="option" data-filter=".<?php echo $headstyle->slug; ?>"><?php echo $headstyle->name; ?></div>
<?php endforeach; ?>
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.