Forums › Forums › Search & Filter Pro › Shortcode or PHP for page template
- This topic has 4 replies, 2 voices, and was last updated 9 years, 11 months ago by
Ross.
-
Ross Moderator(Private) September 28, 2015 at 5:51 pm #26081
Hey there, thanks for the kind words.
I think what you are looking for is to display your results using a shortcode – which you can then embed in a page – check the docs here:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
Thanks
Anonymous(Private) September 28, 2015 at 6:10 pm #26087thanks for the reply. No, that isn’t what I am after.
I am essentially looking to show particular products/results based on a KNOWN filter (as per my example). I do not want users to need to perform a search. They just visit Page X and it will list the products/results. Similar to using a woocommerce shortcode to display a particular product ID or category. I want the bring in particular products/results, as per my example URL above (but without performing the search). Does that make sense?
Ross Moderator(Private) September 30, 2015 at 11:17 am #26205Hey there
I’m afraid this is not an option really.
The closest thing that exists in S&F is to:
1) Create a search form,
2) configure defaults, and include/exclude options
3) set display mode to “shortcode”
4) use the results shortcode to display the postsI think what you are looking for is something more dynamic.
There is 1 way to achieve something similar using code. There is a fairly undocumented filter which means you can change the filter that gets applied to hte results.
Please see here:
This filter allows you to change most of the regular parameters that are passed to to
WP_Query
– which may do what you want (you would need to combine it with the results shortcode method described above).Hope that helps?
Thanks
-
AuthorPosts