Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End 404 error on WP search form

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #187160
    papdronning
    Participant

    I added a search form next to my logo here: bogrummetwp.dk

    But it returns a 404 error when used. It appears to load

    http://bogrummetwp.dk/<?s=murakami

    In stead of http://bogrummetwp.dk/?s=murakami

    Can anyone figure out why that is?

    #187194
    __
    Participant

    Have you looked at the markup you output?

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    

    You’re outputting literal text. It’s not parsed as php code.

    Since this would appear to be a WP site, I’ll assume that the PHP parser is being invoked. How did you “add” this search form?

    #187256
    papdronning
    Participant

    Hmmm … it was a bit of a workaround. I’ll just try pasting the code directly in the header.php

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.