WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Display users search term on search.php

[Resolved] Display users search term on search.php

  • Hi everyone. I think I’ve searched for this but can’t find a solution anywhere. Basically, I want to display the search term/query on my search.php page that a user types in. Is it something simple that I’m missing?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Still looking for a solution folks, nothing yet.

    As I said, I want whatever terms the user types in the search box to appear on my search results page. Anyone any ideas?

    Found the solution, all I had to do was put <?php the_search_query(); ?> in my search.php page.

    Sorry folks.

    thewpguru

    @thewpguru

    Hey Liam. Thank you for posting you self-found solution.
    It helped me. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Display users search term on search.php’ is closed to new replies.
Skip to toolbar