Return to Snippet

Revision: 34600
at October 26, 2010 03:31 by newsok

Initial Code
	$title 	= get_the_title();
	$keys= explode(" ",$s);
	$title 	= preg_replace('/('.implode('|', $keys) .')/iu',
		'<strong class="search-excerpt">\0</strong>',

Initial URL

Initial Description
Open your search.php file and find the the_title() function. Replace it with the following:

1.echo $title;

Save the search.php file and open style.css. Append the following line to it: { background: yellow; }

Initial Title
Enlight search results in your WordPress blog

Initial Tags
search, wordpress

Initial Language