Forums › Forums › Search & Filter Pro › Plugin show but do not filter
Tagged: categori
- This topic has 8 replies, 2 voices, and was last updated 6 years, 6 months ago by Anonymous.
-
Anonymous(Private) May 3, 2018 at 4:29 pm #175625
Hi,
I have tried to make your plugin work, but can’t seem to solve my problem. I’ve set up a filter by categories and it shows on the page but it doesn’t filter / nothing happens when click. The test posts have been marked with different categories but nothing seems to work.
Also I can’t seem to find a guide to how ACF fields can be connected to a filter by your plugin?
Thanks, Maria
Trevor(Private) May 4, 2018 at 10:31 am #175770I see an error in the archive-workshops.php template file. Line 49 is
</ul>
but it needs moving up to line 45 (inside the IF and WHILE).In the archive-workshops.php template file I can see on line 15 a shortcode from our free version. Can this be removed?
When I edit the find-din-workshop page, I also see the same shortcode in a text element. Again, can this be removed?
Will this page be where the search and results are?
If so, can we try a different method? See here the guide to use the Shortcode Results method:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
And make sure to follow the guidance for Customising. In the custom result.php file, find this part (lines 47-72):
while ($query->have_posts()) { $query->the_post(); ?> <div> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p><br /><?php the_excerpt(); ?></p> <?php if ( has_post_thumbnail() ) { echo '<p>'; the_post_thumbnail("small"); echo '</p>'; } ?> <p><?php the_category(); ?></p> <p><?php the_tags(); ?></p> <p><small><?php the_date(); ?></small></p> </div> <hr /> <?php } ?>
and replace it with this:
<ul> <?php while ($query->have_posts()) { $query->the_post(); ?> <li> <a class="workshop-thumbnail" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> <p class="workshop-emnefelt"><?php the_field('Emne'); ?></p> <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5> <h5 class="workshop-pris"><?php the_field('pris'); ?></h5> </li> <?php } ?> </ul>
-
AuthorPosts