Forums › Forums › Search & Filter Pro › Integration with Native Archives & Templates
- This topic has 18 replies, 3 voices, and was last updated 10 years, 4 months ago by
Ross.
-
Anonymous(Private) June 29, 2015 at 4:48 pm #20432
(I’m unsure if what I’m trying to do is already possible, or if this is a feature request.)
We are building a site based on a custom post type of “Findings”, and there are multiple custom taxonomies applied to Findings, such as “Audience” and “Theme”.
The search and filter widget / shortcode works perfectly for filtering them. However, I’m wondering if this can integrate even more tightly into our site.
For example, if I view the native archive for Findings that have an Audience of “Adults”, ( /audience/adults/ ), I’d love it if the filtering widget was able to recognize this and pre-set the form to show “Adults” as selected. As is, if I view the /audience/adults/ screen, the search and filter widget is a brand new state, with nothing selected.
On a similar note, if I use my widget to display Findings with an audience of “Adults”, I’d love for my theme to know that I’m doing that, and react accordingly. For example, if you visit the native /audience/adults/ screen in my theme, the top has the following:
http://i.imgur.com/IvvMYtL.png
This is NOT true if I use Search and Filter Pro to only select Audience == AdultsMy current setting is to use a custom template to show results, and I’m using ‘archive.php’, which is the standard template for all my archives.
Please let me know if this makes sense, and whether or not it is currently possible. If it’s not currently possible, please consider it a feature request ๐
Cheers
Ross Moderator(Private) July 28, 2015 at 11:29 am #22193Hey there!
Sorry for the delay, this is a feature already on the roadmap.
So S&F will detect what kind of page it is placed in, if its in a category archive for example, it will preselect the current category – the same if on an author page, it will filter posts by that author automatically.
There will of course be a redirect to the actual search page but the settings will be preselected.
I really want to add this feature for 2.0 but many users get anxious for release so I may just release it without this feature and look to add it in 2.1.
Thanks
Ross Moderator(Private) September 15, 2015 at 7:12 pm #24883Hey Miguel
This is definitely in there ๐
Thanks
Anonymous(Private) September 23, 2015 at 2:24 pm #25579I downloaded it last night! Thanks my man! I am looking forward to implementing it on my archive pages.
Any recommendations on how to add this shortcode to category pages or custom taxonomies? A plugin or modification of a php file?
Thanks again!
-
AuthorPosts