• Resolved Ciwan86

    (@ciwan86)


    Hi Guys

    I’m working on my first theme for WordPress. Here is the site.

    All is good, but the search is not working 🙁 When I search for something, I get the page cannot be displayed message from the browser.

    Here is the code I have used to insert the search feature into my theme.

    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    It is in the header.php file.

    I’d greatly appreciate any help.

    Thank You.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Your search form submit points to localhost, so find and fix that URL.

    Thread Starter Ciwan86

    (@ciwan86)

    hmm where should it submit the points ?

    Sorry I’m a n00b 🙁

    Try using <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">

    Thread Starter Ciwan86

    (@ciwan86)

    Thank you Esmi and Songdogtech

    The Search is now working, but the results page is so messed up ! and I do not know what page or pages WordPress is putting together to show them Search Results.

    How do I find out what pages are being put together so that I can format them to get a nice looking results page !

    Thank You.

    Thread Starter Ciwan86

    (@ciwan86)

    I found it guys.

    It is sorted ! thank you so much.

    I read This on the WordPress Codex site.

    It turns out I needed a [ search.php ] file

    Thank You Soo Much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search in theme not working’ is closed to new replies.