• Hi Everyone, Iv’e tried almost everything and my search bar function on my website doesn’t want to find anything. What can I do to make the search, search the whole site?

    Things I’ve tried:
    1)Deactivate all plugins
    2)Change Theme
    3)Make sure there are no other search widgets turned on
    4)Change permalinks to default

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Thread Starter mtraps

    (@mtraps)

    I should also mention my search.php looks like it only searching posts. How would I get it to search the entire website

    <?php
    $search_refer = $_GET["post_type"];
    if ($search_refer == 'post') { load_template(TEMPLATEPATH . '/search-post.php'); }else{
    load_template(TEMPLATEPATH . '/search-portfolio.php'); }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Search Bar Function isn't working’ is closed to new replies.