Forums › Forums › Search & Filter Pro › Trying to display search results on same page
- This topic has 11 replies, 2 voices, and was last updated 5 years, 11 months ago by Trevor.
-
Anonymous(Private) December 3, 2018 at 5:24 pm #195168
I am really struggling to figure out how to display the search results on the same page within my template. I am not using the same theme but I believe I would be able to generally figure it out if given some sort of guidance. It’s incredibly frustrating to not be able to find any examples for replicating the demo beside what is provided. Code samples would be incredibly helpful!
Anonymous(Private) December 3, 2018 at 6:04 pm #195173Okay! I was able to successfully display the posts using shortcodes and have replicated the results.php page to customize the html. All of that looks fine, it’s just that I seem to be having some issues with Ajax and submitting my search. The auto search does not load the category I have selected and neither does the submit button. The Results Url is correct (the same page I have the shortcodes listed) I’m not sure what else could be wrong.
Trevor(Private) December 4, 2018 at 3:41 pm #195250The first thing to do, before we try anything else, is to see if your hosting (WP Engine) is the issue.
There is a setting to override a ‘feature’ of WP Engine hosting, that truncates long SQL queries (which ours are). Edit the site wp-config.php file and add this at the top, after line 1 (on a new line 2):
define(‘WPE_GOVERNOR’, false);
PLEASE DO NOT COPY code from the email you receive for this reply, as email systems sometimes alter the quote marks and encode some characters; instead copy it from the actual forum page.
(also see here for another related support note about this – https://support.searchandfilter.com/forums/topic/killed-query-errors-in-log/#post-64826)
-
AuthorPosts