Search function only works in site root?
-
Hi Guys
My site: https://www.onlinekonsulenten.dk
My Theme: Webfolio
My (relevant) plugins: Search everything and YD Search FunctionsTo distinguish between the terms web pages and WP pages I will write WP pages as page.
My problem is that my theme’s search form (which, I believe, uses the native search) only works correct in the site root.
In the site root the search works perfectly and also displays results from all of my pages. In the blog index it displays “Sorry but you are looking for something that isn’t here” if I search for something which I know is on a page. However, if I on the index page instead search for something I know is in one of my blog posts that post is served as a single result on the blog index page… But it doesn’t display as a search results page – just as the index page with less results.
When the current page is a blog post or a page and I search for something not in that post/page the URL changes again but this time the page loses it content – nothing is displayed besides the header and footer. If I instead search for something that is in the post/page – the content just remain displayed and the URL gets the search parameter added.
I am very satisfied with the way the search works in the site root – but why doesn’t it work like that on the entire site?
Does anyone have any idea what is missing or what I need to do to make the search work as it should on the entire site?
Thanks in advance
Esben Rasmussen
- The topic ‘Search function only works in site root?’ is closed to new replies.