• Resolved lerrie

    (@lerrie)


    For my wordpress blog I used the following search form:

    <form id="zoekbar" name="zoekbar" method="get" action="<?php get_option('home') ?>">
    <input type="submit" class="zoekbutton" id="zoek" value="Go!" />
    <input type="text" name="s" class="zoekbar" id="zoeken" onfocus="if(this.value=='ZOEKEN...'){this.value=''}" onblur="if(this.value==''){this.value='ZOEKEN...'}" value="ZOEKEN..." >  </form>

    When I search for something on my front page it works fine. The results are being displayed on my search.php page. When I use the same search bar on any other page it does not show anything but a 404 error, page not found. I have used the same search option as on this website (https://chrisspooner.com/themes/ticketstub/) which comes from this tutorial (https://line25.com/tutorials/how-to-create-a-simple-wordpress-blog-theme).

    What is going wrong?

  • The topic ‘Search only works on frontpage’ is closed to new replies.