Home › Forums › General Issues › Filtering issues which remove images and filters on page › Reply To: Filtering issues which remove images and filters on page
Hi @shoxt3r
My guess would be the main films template page you still have:
<div id="ajax_filter_films">
<?php
$args = array(
'post_type' => 'film',
'posts_per_page' => -1,
);
$query = new WP_Query( $args );
if( $query->have_posts() ) :
while( $query->have_posts() ): $query->the_post();
?>
<h2><?php the_title(); ?></h2>
<?php
endwhile;
wp_reset_postdata();
else :
echo 'No films found matching your criteria.';
endif;
?>
</div><!-- /ajax_filter_films -->
Which if I view the source code on your link, just shows a list of H2 tags
So you need to replace the bit in the while loop with whatever you need to show.
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.