•  
Posts Tagged ‘the_search_query’

How to: Show what a user is searching for in the title

By Austin On February 2, 2009 No Comments

Want to show what any user was searching for?
It is simple, just add this line where your title would be.

<h1>Browsing search results for <strong>"<?php the_search_query() ?>"</strong>.</h1>

The important line is the_search_query() Click here to continue reading