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

Adding a favicon to your site

Looking to add a favicon to you site? Inside your WordPress theme's functions file (functions.php)…

7 hours ago

The launch of WordPress 2.8

Wow, have you heard? WordPress has announced that the newest version, 2.8 which was thought…

5 hours ago

WPLover: On Launching a WordPress theme

I just came across this article over at WPLover. Was very good, especially since I…

17 hours ago

Maintenance release for Hybrid 0.5

Today has released an update to his Hybrid Theme. Version 0.5.1 can be found at…

1 day ago

Using the swekey on your blog

If you've downloaded the Swekey plugin and plan on using it for users to login…

2 days ago

April’s new meetup location for LAWPUG

Anyone in the Los Angeles area? Well the first Sunday of the month is the…

2 days ago