WordPress.org

Ready to get started?Download WordPress

Forums

Search bar /Results not working?!! (11 posts)

  1. keysuuh
    Member
    Posted 1 year ago #

    [ Moderator note: Please do not request specific people to assist like that. ]

    I am trying to use the Relevanssi Plugin...I have it correctly installed ect.
    But I tried to use the search bar and I am not sure why it isn't working.
    Here are the contents in my search form folder:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
        <input id="searchField" type="text" value="<?php the_search_query(); ?>" />
        <input id="searchSubmit" type="submit" value="" />
    </form>

    I'd post the search.php html but I know I need to use another site to display code...I totally have no idea what that site's url is :(
    Please help?

  2. keysuuh
    Member
    Posted 1 year ago #

    Please post the site url so I can show my search.php html

  3. Andrew Bartel
    Member
    Posted 1 year ago #

    pastebin.com

  4. Andrew Nevins
    Volunteer Moderator
    Posted 1 year ago #

    Here are some instructions on posting code
    http://codex.wordpress.org/Forum_Welcome#Posting_Code

    If you want to post the site url and can't get to grips with the link button, you can paste the URL as is.

  5. keysuuh
    Member
    Posted 1 year ago #

  6. keysuuh
    Member
    Posted 1 year ago #

    I'm guessing I just post this url for search.php HTML?
    http://pastebin.com/d0nHgR2k

  7. Andrew Bartel
    Member
    Posted 1 year ago #

    I've never used the plugin, but it's not appending the search to your url like the normal WordPress search.

    Was the normal WordPress search working before installing this plugin? What functionality about the plugin did you want? There may be an alternate solution.

  8. keysuuh
    Member
    Posted 1 year ago #

    I actually just added the search form.
    I've been trying to build a theme from scratch...

  9. Andrew Bartel
    Member
    Posted 1 year ago #

    Oh ok. Here is a valid search form for WP:

    <form id="search_form" method="get" action="<?php echo home_url(); ?>">
    
    <input type="text" name="s" value="" class="search_box">
    <input type="submit" name="submit" value="Search" class="search_submit">
    
    </form>
  10. keysuuh
    Member
    Posted 1 year ago #

    thank you very much Andrew

  11. Andrew Bartel
    Member
    Posted 1 year ago #

    Of course, please mark as resolved!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.