Forums › Forums › Search & Filter Pro › Display results on the current Taxonomy Page
- This topic has 7 replies, 2 voices, and was last updated 4 years, 3 months ago by Trevor.
-
Anonymous(Private) August 24, 2020 at 12:39 pm #257111
Hi,
I’m using your plugin to filter my custom post type on my custom taxonomy page.
For exemple my Custom post type is PRODUCT and my custom taxonomy is PRODUCT CATEGORIES
I have some products inside the taxonomy TSHIRT.
My custom taxonomy TSHIRT url is : mywebsite.com/produits/tshirt/
On this page i want to add te S&F form to filter my products but i want to display the filter results on the same page “mywebsite.com/produits/tshirt/”
And i want to do that with on other taxonomy SWEATSHIRT.I want to use the same S&F form and the same template “taxonomy.php”.
Is it possible, because when i’m using the DISPLAY RESULTS : as an archive, it doesn’t work.
Waiting for your help.Thanks;
Simon.Trevor(Private) August 24, 2020 at 5:56 pm #257165I think I understand. You may need to use the Post Type Archives method, with 3 important settings set:
1. The product category taxonomy must be a field in the form.
2. You need to set autodetect category/taxonomy:https://www.screencast.com/t/3B40jPYRF4SA
3. And also enable filtering on Taxonomy Archives:
Trevor(Private) August 25, 2020 at 11:46 am #257222There could be a problem in that code, yes, but finding that would be outside the scope of our support. Did you use that code to get something specific in the way of pagination? My way to get pagination is to simply use the free WP-Pagenavi plugin, as that needs only code like this:
<div class="pagination"> <?php if (function_exists('wp_pagenavi')) { wp_pagenavi( array( 'query' => $query ) ); } ?> </div>
Assuming that the WP_query array is named $query. Then you can format the pagination as you wish (there is another addon plugin, also free, that adds more formatting:
-
AuthorPosts