Forums › Forums › Search & Filter Pro › How to use it with EDD without Shortcode
- This topic has 7 replies, 2 voices, and was last updated 9 years, 1 month ago by Ross.
-
Anonymous(Private) November 3, 2015 at 8:56 pm #28898
Hello !
My theme is build for EDD and my page template don’t contains a shortcode like ‘[downloads]’. I think It’s inside of the loop (My theme is Checkout by Array themes). How to echo search and filters on my EDD pages ? Should I create a sidebar and echo the Search & Filter shortcode ?
Another question. On my downloads archives I can easily add a sidebar and the widget. So it works fine but the widget dont want to show my category downloads and tags (only my post categories) ? How to fix it please ?
Thank you so much, and sorry for the english ๐
Ross Moderator(Private) November 9, 2015 at 7:45 pm #29282Hi Yacine
I see what you mean now.
You cannot use S&F with custom queries – ie, you cannot wire it up to a custom
WP_Query
that is created somewhere else.What you would need to do is use S&F to create the whole query, and then customise the results.
What I think is best to do in this case is to create the query with S&F
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
Make sure to complete the step about customising the template.
Then the template file
results.php
would have your loop.I would then substitute the loop with the same structure as above and add in
get_template_part( 'partials/content-download-thumbs' );
The EDD specific support only works with EDD downloads shortcode itself.
Thanks
-
AuthorPosts