Tagged Questions
1
vote
1answer
16 views
get_search_link() redirects to 404 template page
I built a custom theme, and in it, there is a 404.php page and a search.php page.
Elsewhere in the template, I wanted to link to the search page directly. So, I used the get_search_template() ...
1
vote
2answers
226 views
Wordpress triggers 404 on page 2 for custom search query
I modified my index.php to check if the search query is an author and if yes, display articles of that author.
That is working fine but as soon as you go to page 2 of the results, wordpress triggers ...
0
votes
1answer
70 views
Enhancin 404 to contain a search from URL
I have migrated to WordPress from other (probably unknown to you) free blogging site (bloguje.cz if you are curious)
The issue is, that previous system had sometimes URL ending with ".php" and ...
1
vote
3answers
2k views
Change loop.php for empty search customization
I've been stumped for days wondering why when I submit an empty string as a search term, it redirects to part of loop.php where I have the following code inserted:
<?php /* If there are no posts ...
0
votes
1answer
304 views
How to return HTTP 404 when no search results found?
When user search and there is no results found wordpress still return 200 OK. I want to change it to 404 Not Found. Is it possible to return 404 Not Found header in search.php? If yes, how to do ...