[resolved] Search in theme not working (6 posts)

  1. Ciwan86
    Posted 5 years ago #

    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.

  2. Your search form submit points to localhost, so find and fix that URL.

  3. Ciwan86
    Posted 5 years ago #

    hmm where should it submit the points ?

    Sorry I'm a n00b :(

  4. esmi
    Forum Moderator
    Posted 5 years ago #

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

  5. Ciwan86
    Posted 5 years ago #

    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.

  6. Ciwan86
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic