Replies: 0
Hi there,
Currently trying to filter Custom Post Type (Brokerage) “posts” via a selection of custom taxonomies and ACF fields. The page that the filter is added is archive-brokerage.php.
Have added the filter via a Widget but whenever I actually use the filter, nothing happens. Below is where I have added the Widget:
<div class="hero-spec-flex brokerage">
<?php if ( is_active_sidebar( 'filter-widget' ) ) : ?>
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'filter-widget' ); ?>
</div><!-- #primary-sidebar -->
</div>
and below is where I have my posts:
<?php if( $query->have_posts() ) : while( $query->have_posts() ): $query->the_post();
get_template_part( 'includes/brokerage-archive', get_post_format() );
endwhile; wp_reset_postdata(); endif;?>
Any ideas why nothing is happening?
Many thanks in advance.