Home › Forums › SimpleBright › Search not working when permalinks set to postname
This topic contains 30 replies, has 13 voices, and was last updated by chanyuan 1 day, 3 hours ago.
I want the permalinks to be in domain.com/postname. But the search only works when I’m viewing the first page. I can see in the adressbar that the search has been executed, but not displayed.
Is there a way around this?
It should work. You can test it on our demo, http://demo.s5themes.com/simplenbright/. Permalinks set to Postname
It returns a Epic 404 on both my site and on the demo site. What I would like is to show the search.php with the search results, even if there is no results.
you mean on your demo site or ours ? On our demo it doesnt return 404. Also, try to select the default WP postname option for permalinks, i suupose you added postname in custom permalink field. These can be tricky sometimes
For me it returns a 404 message. If I go to the contact page and do a search on the word “simple”, it returns a 404.
I quickly swapped the settings back to default and it works. But when I put the permalink to postname, it doesn’t work anymore.
Do you have any see or similar plugin installed ? if you do try deactivate it and try again. Also check if plugin is known to be compatible with your wp version etc. Again, if you do use a plugin.
Tested it on a clean install of WordPress and set the permalinks to postname and it doesn’t work there.
Wordpress v. 3.4.1
No reason not to from the theme itself. Dont know what to say anymore. We can’t reproduce the issue as on our demo works just fine as you can see.
Asking you again, do you select the default wp option for postname or you add some parameter in the “custom permalink structure” on permalinks settings page?
It is happening to me on your demosite aswell. You can check a screenshot here.
This screenshot doesnt help me, pls post one with your permalinks settings page.
I select the option for postname in the radio buttons. I do not write the code /%postname%/ in the custom value box.
ok, sorry, i might have read you messages wrong. I see the issue now. You are right. Ok, let me look into it a littlea and we will get back once we have a fix for it. Thanks and sorry again!
It’s in swedish, hopefully you can make out the radiobuttons. Here’s a screenshot.
No worries! Thanks for the quick replies and I hope you find a solution soon.
OK, found the issue. On header.php, on line 114, on the form tag, beside the method=”get” alo add this:
action=”<?php bloginfo( ‘url’ ); ?>”
It will solve this issue, sorry for this …
You must be logged in to reply to this topic.