Forums

getting search results to show (2 posts)

  1. majestictreefrog
    Member
    Posted 1 year ago #

    I have been trying to get a search results page to show up. I have a search.php file, but when I run the search, it returns front-page.php

    also, none of the get query is in the URL.

    I can't find any codex documentation on the search.php file and what it needs to include. It looks like WP takes the get query and decides that it is a search, finds search.php like any other template file, and then spits out search results in a standard loop.

    So... if this is all accurate, why might WP not get getting the query? Is there a "standard" search form markup that I can look at? The one I found had action="<?php home_url( '/' ); ?>"

    I DO have a different home.php vs frontpage.php, my front page is static.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    A static front page won't make any difference. Have you tried taking your search.php template file out of the theme and running a search?

Topic Closed

This topic has been closed to new replies.

About this Topic