• Hi,

    I’m having this odd issue, where if I’m using pretty permalinks and have my search form as part of my header.php then any searches from pages other than my ‘home’ page result in a 404.

    If I move the search form to say the footer, it works fine every time.

    Is this a bug? Or standard for the way wordpress works and I’m seeing some kind of execution order problem?

    I don’t have a side bar at all to say, put the search form in.

Viewing 1 replies (of 1 total)
  • It’s definitely not standard behaviour. Perhaps it’s to do with the placing of <?php get_search_form();?> in the header? Are you using a custom form – ie does your theme have its own searchform.php file?

Viewing 1 replies (of 1 total)
  • The topic ‘Search form in Header.php breaks with pretty permalinks’ is closed to new replies.