Categories: Tips & Tricks

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

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()

Web Master

Hi, I am Miguel, I bought this site in 2009. So I now run or manage the site. Please visit my new website or follow me on twitter @W3i.

Recent Posts

Sam Bauers on bbPress [video]

As mentioned in a previous post, I was able to record about 85% of the…

2 hours ago

The actually release of WordPress 2.8 announced

The WordPress development blog has put a date on the release of 2.8, plus some…

10 hours ago

Ben Dunkle on designing icons for WordPress [video]

I know many people attendedWordCamp 2009, in fact I believe there were 700 plus attendees.…

1 day ago

Notes from WordCamp San Fransisco

Over view notes of San Francisco WordCamp 2009 by [insert creator]??

2 days ago

The state of the Press

I might like to start off by saying Happy Birthday WordPress. I don't have any…

2 days ago