Unfortunately this is not yet an option within S&F – but there are a couple of hacky workarounds.
1) Enable “Bookmarkable URLs” – then go to you search form, click “most popular” and you will notice the URL change. Use this URL for linking to your search page.
Then you would have to detect whether a search has been performed (ie any options in the form selected) – if not you would use the above filter to by tag 1 – and then using JS you would also have to set the filter – its pretty messy but I guess possible.
Sorry, I can’t go by this way, because I can’t pass category or tag into sf_edit_query_args 🙁
Category isn’t fixed, it get from post with vitrine shortcode. So different vitrines have different categories, but shortcodes in the posts can be same!
So, what you would like to do (as an example) is pass the category through to S&F, in the shortcode or something similar.
Well, this is not yet possible, but you can use the shortcode like you mention above, and then use the filter sf_edit_query_args in the link above to limit the tag/category to whatever you like.
So in this way it is dynamic and according the cat/tag you supply via some custom php code.
and then run sf_edit_query_args – if you want to check sf_edit_query_args after it has some values from S&F then run it with a lower priority (eg 100):
So I’ve found that there is a new filter sf_edit_query_args which is exactly for this purpose. But when I try to hook there the $query_args argument is empty.. :-/
Author
Search Results
Viewing 5 results - 201 through 205 (of 205 total)
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
3rd Party Cookies
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!