Forums › Forums › Search & Filter Pro › Fatal Error in Results Template
- This topic has 5 replies, 2 voices, and was last updated 9 years, 2 months ago by Ross.
-
Anonymous(Private) September 28, 2015 at 3:19 pm #26063
Hello,
I am getting an error now Call to a member function have_posts() on a non-object in /home/domain/public_html/wp-content/themes/mytheme/search-filter/results.php on line 25
This is the page: http://wfsaustralia.com/clients/
Your help is appreciated. Thank you.
Ross Moderator(Private) September 28, 2015 at 3:20 pm #26065This reply has been marked as private.Ross Moderator(Private) September 28, 2015 at 3:27 pm #26067If you are using the shortcode method to display results then all you need is the URL, other methods require the template file being specified 🙂
Thanks
Anonymous(Private) September 28, 2015 at 3:37 pm #26069Hi Ross I am using a custom template for my results for display purpose. It seems to work now so I hope nothing else will change. It seems to get my results.php template from my theme directory. Maybe because that is already in the database from before this upgrade? I’m not sure.
Ross Moderator(Private) September 28, 2015 at 3:43 pm #26070Hi Colette thats absolutely fine, you also didn’t need to specify the filename in the previous version either (docs haven’t changed for the shortcode method):
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
I think it might have been a result of the slightly confusing admin UI.
Nothing to worry about here 🙂
-
AuthorPosts