I have a custom post type and a page where I loop through them. I'm trying to implement the plugin Search and Filter to the page, so people can filter the custom posts.
However, it does not work at the moment... It just resorts to the regular wordpress search.
Any ideas how should I implement it to my loop?
Here's my loop:
<div class="meetup-groups">
<?php
$loop = new WP_Query( array(
'post_type' => 'meetup_groups',
'posts_per_page' => -1
)
);
?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<!-- do stuff -->
<a href="<?php echo esc_url( get_field('meetup_group_link') ); ?>">
<div class="meetup-card">
<div class="meetup-overlay"></div>
<img src="<?php the_post_thumbnail('medium'); ?>">
<div class="meetup-card-text"><h3><?php the_title(); ?></h3>
<div class="meetup-location"><h4><?php the_field('city'); ?><br><?php the_field('country'); ?></h4></div></div>
</div></a>
<?php endwhile; wp_reset_query(); ?>
</div>