If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi Christian, long time no speak.
The site at http://www.charlesstrohmer.com has been working great for a while now but he noticed a problem that I cannot fathom.
When entering a search query the returned page has the general page template but the content of the home page, every time. I last tested the function quite early in the development and it was fine. Could you give me a general steer as to where the culprit might be before I go through the plugin waltz. There’s an awful lot going on on this site so that could be a slow process.
What plugins do you have active? If you disable them, does the search page work properly?
Have you modified search.php or searchform.php?
The URL structure for the search page is correct (http://www.charlesstrohmer.com/?s=test) and the body class shows as the search page (look at the <body> tag in the page source) which indicates the page is the search page.
OK, that cracked it. Not sure how it happened.
seach.php must have gotten lost in the update, it was missing.
The topic ‘Search returning homepage’ is closed to new replies.