Forums › Forums › Search & Filter Pro › Category url
- This topic has 7 replies, 2 voices, and was last updated 7 years, 3 months ago by
Anonymous.
-
Anonymous(Private) October 29, 2018 at 11:39 pm #192071
Hi- I am using the search & filter on my category.php page on my site and would appreciate your help!
I am displaying all the posts for a particular category using the WP loop and am trying to filter by the tags of the posts for that category.
I have updated my category page url to go to ‘/{category-name}’ instead of /category/{category-name} and would like the filter to use the dynamic category url ‘/{category-name}?_sft_post_tag={tag…}’ instead of only ‘?_sft_post_tag={tag…}’
When I use the settings Display results method: “Post Type Archive” with Enable filtering on Taxonomy Archives (to use correct url I want of ‘/{category-name}?_sft_post_tag={tag…}), when I select a tag, the section reloads but displays ALL of the posts for the category. In Settings > General > Search in the following post types: I only have “Posts” selected.
The posts display and filter correctly with Ajax if I use the settings:
Display results method: “As an Archive”, but the url is going to ‘?_sft_post_tag={tag…}’.Happy to send my URL and any other useful information privately. Thank you so much for your help!
Trevor(Private) December 31, 2018 at 2:19 pm #197689Please note that we are now into a holiday period in the UK. We will be working for some of this period, but replies may be delayed at times.
I have made some changes to the form. Other than the Category is added to the form and currently visible, is this how you wanted it?
Please note that we are now into a holiday period in the UK. We will be working for some of this period, but replies may be delayed at times.
Trevor(Private) January 1, 2019 at 9:35 am #197746The links below are all screenshots, so click them to view them. It is necessary for Category to be in the form, so I added it back, but hid it with custom CSS, as you will see:
https://www.screencast.com/t/eeEsHn9DwDV
https://www.screencast.com/t/BjTa34KM
https://www.screencast.com/t/BNVMmLzcuI0
https://www.screencast.com/t/rLawpoB3Ma1W
https://www.screencast.com/t/ze47fRe21Rz
https://www.screencast.com/t/4PWQu8CvX5
Each step is required (the red arrows and boxes indicate what I changed, with the exception of the autodetect Category, which you already had ON, but it IS needed.
-
AuthorPosts