Forums › Forums › Search & Filter Pro › S&F on Post Category template
Tagged: categories, category
- This topic has 5 replies, 2 voices, and was last updated 4 years, 1 month ago by Trevor.
-
Anonymous(Private) September 27, 2020 at 5:04 pm #260951
I’m trying to use S&F on a post category template. I only want to return results from this post category. I have several different taxonomies I’m filtering by. I have the search form setup to use an archive page, and I’m pointing it to the custom category php template. I think the initial search results are correct, but when I click another taxonomy filter, or if I clear the selected one, nothing happens. It doesn’t update the returned results. If I click the Load More button, it just loads the first 12 posts again and again. Am I doing this correct, or do I need to change the display results method for a category?
Trevor(Private) October 1, 2020 at 3:45 pm #261599Are you wanting to ONLY ever have this form search inside that ‘Real Weddings’ category?
BTW, I think you might want to use this custom CSS:
.searchandfilter[data-sf-form-id="63885"] li[data-sf-field-input-type="checkbox"] ul li { display: inline-block; margin-right: 20px; }
Trevor(Private) October 1, 2020 at 4:39 pm #261615The only alternative to one form per page (where you could ‘Include’ just that one Category term) would be to set the form to the Post Type archives method, which has an option to stay within the archives pages, and also to Auto Detect the Category
-
AuthorPosts