WordPress.org

Ready to get started?Download WordPress

Forums

Search form just isn't functioning... (9 posts)

  1. reid315
    Member
    Posted 9 years ago #

    Not a bump, but I have a different problem:

    My search form just isn't searching. No matter what i search, It only returns my post. what's wrong?

    [code]
    <form method="get" action="http://foggyideas.hostmatrix.org/blog/index.php" name="search">
    <input type="text" name="search" size="25" value="Search" onfocus="this.value=''" />
    Find It!
    </form>
    [/code]

  2. Avenir
    Member
    Posted 9 years ago #

    Try changing the action attribute to <?php echo $_SERVER['PHP_SELF']; ?>. That's how I have it in my searchform.

  3. reid315
    Member
    Posted 9 years ago #

    sorry, but it still doesn't work. maybe this: i have this search form on my home.php, while my blog is /blog/index.php. as with the address above, i've set it to return directly to the blog itself. any other suggestions?

  4. Avenir
    Member
    Posted 9 years ago #

    I'm not sure what to tell you then. Maybe someone else can offer an answer?

  5. 2bak860
    Member
    Posted 9 years ago #

    Hi,

    I've got a similar problem.

    My search form works - but only shows me one post. This is the same in my archives section - select once category or month and only one post will show in the Search Results. I have a few plugins - should I start deactivating them to see if that helps?

    thanks.

  6. 2bak860
    Member
    Posted 9 years ago #

    Ah, I see that the results do show up, but I have to click 'previous/next page'. Is there a way of having the results show on just one page - I had it like that once before. BTW - it's rosschapman.com.

    thanks.

  7. 2bak860
    Member
    Posted 9 years ago #

    Ok, I've deactivated most of the plugins, but still I get the same result.

  8. macographer
    Member
    Posted 9 years ago #

    the problem site

    i could've sworn this was working before, but i could be wrong. i only noticed this within the last month. the search form doesn't seem to do anything. from the pages i've tested in on, it just returns to the site index. is there any particular code i can show to help troubleshoot this problem?

  9. macographer
    Member
    Posted 9 years ago #

    ignore my question. i don't know why i made the changes i did to the form, but i compared it with the default, changed a few of the attributes back to the default and it worked. i guess the form needed to have certain attributes set to certain values.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.