开发者

If wordpress search not found redirected to /url and Not Found error

I been trying to fix this error but I am having no luck at all.

I am developing a WP theme and everything works fine except when I try to search for something that will return 0 results. When there are results everything works fine.

If there are 0 results WP redirects me to http://mywebsite.com/url displaying a "Not Found" error.

Here I copy my code for searchform.php that may help someone willing to help me.

<form action="<?php echo home开发者_如何学C_url(); ?>" id="searchform" method="get" role="search"> <input type="text" id="s" name="s" value=""/> <input type="submit" value="Search" id="searchsubmit" style="display: none;"/> </form>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜