Forums › Forums › Search & Filter Pro › Search is refreshing but not filtering
- This topic has 6 replies, 2 voices, and was last updated 7 years, 3 months ago by Anonymous.
-
Anonymous(Private) September 15, 2017 at 12:36 am #131166
I’m using shortcode on a page to search through a custom post type with post meta fields. Everything is showing up properly but when I choose a checkbox to filter by the page refreshes but doesn’t actually filter out the posts that don’t match. I’ve set field relationships to be “AND” but its not and-ing 🙂
Please help!
Trevor(Private) September 15, 2017 at 2:40 pm #131300You appear to be using a custom results.php file. If that is so, can you copy the contants of that file and then post that (as a reply on this thread) within code ticks (the backwards quote mark that is on the key normally to the left of the main keyboard ‘1’ key, one before the code and one after it).
Trevor(Private) September 15, 2017 at 4:02 pm #131322what happens if you remove this line:
<?php $loop = new WP_Query( array( 'post_type' => 'coaches' ) ); ?>
Or disable it like this:
<?php \\$loop = new WP_Query( array( 'post_type' => 'coaches' ) ); ?>
and then change this line:
while ( $loop->have_posts() ) : $loop->the_post();
to this:
while ( $query->have_posts() ) : $query->the_post();
-
AuthorPosts