ACF + Isotope: Filter Post Object Data
<p>I'm trying to filter data from a custom post-type called "Clients", based on category. What I need to appear is the logo for each particular client.</p>

<p>I've set up a repeater field of Post Objects, so I can change the order that the logos will be displayed.</p>

<p>What I have currently works, however I cannot figure out how to incorporate the Post Object selector, so that what appears is determined by the instances I've added via the Repeater.</p>

<p><a href="http://delindesign.com/adlhochgroup/clients/" rel="nofollow noreferrer">Here is the link to the site.</a> Appreciate any answers!</p>

<p>See below for screenshot of my dashboard setup:</p>

<p><a href="https://i.stack.imgur.com/6WIDT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6WIDT.png" alt="enter image description here"></a></p>

<pre><code>&lt;ul id="filters"&gt;
                    &lt;?php 
                        $terms = get_terms("category", array(
                            'orderby' =&gt; 'slug'
                        )); // get all categories, but you can use any taxonomy
                        $count = count($terms); //How many are they?
                        if ( $count &gt; 0 ){  //If there are more than 0 terms
                            foreach ( $terms as $term ) {  //for each term:
                                echo "&lt;li&gt;&lt;a href='#' data-filter='.".$term-&gt;slug."'&gt;" . $term-&gt;name . "&lt;/a&gt;&lt;/li&gt;\n";
                                //create a list item with the current term slug for sorting, and name for label
                            }
                        } 
                    ?&gt;
                &lt;/ul&gt;


                &lt;?php $the_query = new WP_Query(array(
                    'post_type' =&gt; 'clients',
                    'posts_per_page' =&gt; '-1',
                    'order' =&gt; 'ASC'
                    )); //Check the WP_Query docs to see how you can limit which posts to display ?&gt;

                &lt;?php if ( $the_query-&gt;have_posts() ) : ?&gt;
                    &lt;div class="isotope-list-container"&gt;
                        &lt;div id="isotope-list" class="row small-up-1 medium-up-2 large-up-3"&gt;
                        &lt;?php while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post(); 
                        $termsArray = get_the_terms( $post-&gt;ID, "category" );  //Get the terms for this particular item
                        $termsString = ""; //initialize the string that will contain the terms
                            foreach ( $termsArray as $term ) { // for each term 
                                $termsString .= $term-&gt;slug.' '; //create a string that has all the slugs 
                            }
                        ?&gt; 
                        &lt;div class="&lt;?php echo $termsString; ?&gt; portfolio columns"&gt; &lt;?php // 'portfolio' is used as an identifier (see Setp 5, line 6) ?&gt;
                            &lt;div class="portfolio-item-container"&gt;
                                &lt;?php 
                                    $image = get_field('logo');
                                    if( !empty($image) ): ?&gt;
                                        &lt;img src="&lt;?php echo $image['url']; ?&gt;" alt="&lt;?php echo $image['alt']; ?&gt;" /&gt;
                                    &lt;?php endif; ?&gt;
                                &lt;/div&gt;
                        &lt;/div&gt; &lt;!-- end portfolio item --&gt;
                        &lt;?php endwhile;  ?&gt;
                        &lt;/div&gt; &lt;!-- end isotope-list --&gt;
                    &lt;/div&gt;
                &lt;?php endif; ?&gt;
                &lt;?php wp_reset_query(); ?&gt;
</code></pre>