<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WpFunc &#187; searched text</title>
	<atom:link href="http://www.wpfunc.com/tag/searched-text/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Nice Search Plugin!</title>
		<link>http://www.wpfunc.com/wp-plugins/nice-search-plugin.html</link>
		<comments>http://www.wpfunc.com/wp-plugins/nice-search-plugin.html#comments</comments>
		<pubDate>Mon, 04 Jan 2010 17:39:06 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[WP Plugins]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searched text]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress search]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=360</guid>
		<description><![CDATA[This plugin is a very simple redirect plugin. The Plugin change WordPress&#8217; search context &#8220;?s=searched%20word&#8221; to permalink &#8220;/search/searched+word/&#8221; one. Also change &#8220;%20&#8243; to &#8220;+&#8221;. Thanks to Mark Jaquith!
Here is the Plugin;
You can see what code the plugin has;
&#60;?php /*
Plugin Name: Nice Search
Version: 0.2
Plugin URI: http://txfx.net/code/wordpress/nice-search/
Description: Redirects ?s=query searches to /search/query, and converts %20 to +
Author: [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/display-custom-content-to-search-engine-visitors.html' rel='bookmark' title='Permanent Link: Display Custom Content to Search Engine Visitors!'>Display Custom Content to Search Engine Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/wordpress-exploit-scanner-plugin.html' rel='bookmark' title='Permanent Link: WordPress Exploit Scanner Plugin!'>WordPress Exploit Scanner Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html' rel='bookmark' title='Permanent Link: How to Highlight Searched Text In Results'>How to Highlight Searched Text In Results</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This plugin is a very simple redirect plugin. The Plugin change WordPress&#8217; search context &#8220;?s=searched%20word&#8221; to permalink &#8220;/search/searched+word/&#8221; one. Also change &#8220;%20&#8243; to &#8220;+&#8221;. Thanks to Mark Jaquith!<span id="more-360"></span></p>
<h3>Here is the Plugin;</h3>
<p>You can see what code the plugin has;</p>
<pre class="brush: php;">&lt;?php /*
Plugin Name: Nice Search
Version: 0.2
Plugin URI: http://txfx.net/code/wordpress/nice-search/
Description: Redirects ?s=query searches to /search/query, and converts %20 to +
Author: Mark Jaquith
Author URI: http://txfx.net/
*/

function txfx_nice_search() {
	if ( is_search() &amp;&amp; strpos($_SERVER['REQUEST_URI'], '/wp-admin/') === false &amp;&amp; strpos($_SERVER['REQUEST_URI'], '/search/') === false ) {
		wp_redirect(get_bloginfo('home') . '/search/' . str_replace(' ', '+', str_replace('%20', '+', get_query_var('s'))));
		exit();
	}
}

add_action('template_redirect', 'txfx_nice_search');
?&gt;
</pre>
<p>That&#8217;s All!<br />
You can download it from here:<br />
Note: There is a file embedded within this post, please visit this post to download the file.</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%21&amp;notes=This%20plugin%20is%20a%20very%20simple%20redirect%20plugin.%20The%20Plugin%20change%20WordPress%27%20search%20context%20%22%3Fs%3Dsearched%2520word%22%20to%20permalink%20%22%2Fsearch%2Fsearched%2Bword%2F%22%20one.%20Also%20change%20%22%2520%22%20to%20%22%2B%22.%20Thanks%20to%20Mark%20Jaquith%21%0D%0A%0D%0AHere%20is%20the%20Plugin%3B%0D%0AYou%20can%20see%20what%20code%20'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%21&amp;bodytext=This%20plugin%20is%20a%20very%20simple%20redirect%20plugin.%20The%20Plugin%20change%20WordPress%27%20search%20context%20%22%3Fs%3Dsearched%2520word%22%20to%20permalink%20%22%2Fsearch%2Fsearched%2Bword%2F%22%20one.%20Also%20change%20%22%2520%22%20to%20%22%2B%22.%20Thanks%20to%20Mark%20Jaquith%21%0D%0A%0D%0AHere%20is%20the%20Plugin%3B%0D%0AYou%20can%20see%20what%20code%20'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;t=Nice%20Search%20Plugin%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Nice%20Search%20Plugin%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;title=Nice%20Search%20Plugin%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwp-plugins%2Fnice-search-plugin.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/display-custom-content-to-search-engine-visitors.html' rel='bookmark' title='Permanent Link: Display Custom Content to Search Engine Visitors!'>Display Custom Content to Search Engine Visitors!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/wordpress-exploit-scanner-plugin.html' rel='bookmark' title='Permanent Link: WordPress Exploit Scanner Plugin!'>WordPress Exploit Scanner Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html' rel='bookmark' title='Permanent Link: How to Highlight Searched Text In Results'>How to Highlight Searched Text In Results</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wp-plugins/nice-search-plugin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Highlight Searched Text In Results</title>
		<link>http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html</link>
		<comments>http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 12:00:43 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[searched text]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=76</guid>
		<description><![CDATA[You can highlight searched text in search results. WordPress search system is powerfull but some things not acceptable for me :) i searched on internet and found this code for theme developers. You can add this special code to your theme. You need to change serach.php and your style.css.First open your search.php with your favourite [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/highlight-the-searched-text.html' rel='bookmark' title='Permanent Link: Highlight the Searched Text!'>Highlight the Searched Text!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/nice-search-plugin.html' rel='bookmark' title='Permanent Link: Nice Search Plugin!'>Nice Search Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/insert-a-text-to-text-editor-automatically.html' rel='bookmark' title='Permanent Link: Insert a text to text editor automatically!'>Insert a text to text editor automatically!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can highlight searched text in search results. WordPress search system is powerfull but some things not acceptable for me :) i searched on internet and found this code for theme developers. You can add this special code to your theme. You need to change serach.php and your style.css.<span id="more-76"></span>First open your search.php with your favourite php editor;</p>
<p>Find the_title() function and replace with</p>
<pre class="brush: plain;">echo $title;</pre>
<p>After than add this code to before modified line</p>
<pre class="brush: plain;">&lt;?php
 $title  = get_the_title();
 $keys= explode(&quot; &quot;,$s);
 $title  = preg_replace('/('.implode('|', $keys) .')/iu',
 '&lt;strong class=&quot;search-excerpt&quot;&gt;\0&lt;/strong&gt;',  $title);
?&gt;</pre>
<p>And Last Step :)</p>
<p>Add this line to your style.css</p>
<pre class="brush: plain;">strong.search-excerpt { background: yellow; }</pre>
<p>You can change &#8216;yellow&#8217; with a color code or color name.</p>
<p>That&#8217;s All! Have a nice day!</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;title=How%20to%20Highlight%20Searched%20Text%20In%20Results&amp;notes=You%20can%20highlight%20searched%20text%20in%20search%20results.%20WordPress%20search%20system%20is%20powerfull%20but%20some%20things%20not%20acceptable%20for%20me%20%3A%29%20i%20searched%20on%20internet%20and%20found%20this%20code%20for%20theme%20developers.%20You%20can%20add%20this%20special%20code%20to%20your%20theme.%20You%20need%20to'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;title=How%20to%20Highlight%20Searched%20Text%20In%20Results&amp;bodytext=You%20can%20highlight%20searched%20text%20in%20search%20results.%20WordPress%20search%20system%20is%20powerfull%20but%20some%20things%20not%20acceptable%20for%20me%20%3A%29%20i%20searched%20on%20internet%20and%20found%20this%20code%20for%20theme%20developers.%20You%20can%20add%20this%20special%20code%20to%20your%20theme.%20You%20need%20to'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;t=How%20to%20Highlight%20Searched%20Text%20In%20Results'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=How%20to%20Highlight%20Searched%20Text%20In%20Results&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;title=How%20to%20Highlight%20Searched%20Text%20In%20Results'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;title=How%20to%20Highlight%20Searched%20Text%20In%20Results'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fhow-to-highlight-searched-text-in-results.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/highlight-the-searched-text.html' rel='bookmark' title='Permanent Link: Highlight the Searched Text!'>Highlight the Searched Text!</a></li>
<li><a href='http://www.wpfunc.com/wp-plugins/nice-search-plugin.html' rel='bookmark' title='Permanent Link: Nice Search Plugin!'>Nice Search Plugin!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/insert-a-text-to-text-editor-automatically.html' rel='bookmark' title='Permanent Link: Insert a text to text editor automatically!'>Insert a text to text editor automatically!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/how-to-highlight-searched-text-in-results.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
