<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Highlight Search Terms</title>
	<atom:link href="http://4visions.nl/wordpress-plugins/highlight-search-terms/feed/" rel="self" type="application/rss+xml" />
	<link>http://4visions.nl</link>
	<description>Solid. Quick. Fluent. Online.</description>
	<lastBuildDate>Tue, 15 May 2012 17:32:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Jason</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-33053</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 19 Apr 2012 13:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-33053</guid>
		<description>Awesome! It works great. And I see that it is stable now! Thanks so much for the update!</description>
		<content:encoded><![CDATA[<p>Awesome! It works great. And I see that it is stable now! Thanks so much for the update!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RavanH</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-32978</link>
		<dc:creator>RavanH</dc:creator>
		<pubDate>Wed, 18 Apr 2012 21:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-32978</guid>
		<description>Hi Jason, this issue has been adressed in the current development version. It&#039;s just not officially released as stable yet. If you can&#039;t wait, download it straight from http://downloads.wordpress.org/plugin/highlight-search-terms.zip, unzip it and upload the files overwriting the old ones via FTP. It should fix the issue you are seeing :)</description>
		<content:encoded><![CDATA[<p>Hi Jason, this issue has been adressed in the current development version. It&#8217;s just not officially released as stable yet. If you can&#8217;t wait, download it straight from <a href="http://downloads.wordpress.org/plugin/highlight-search-terms.zip" rel="nofollow">http://downloads.wordpress.org/plugin/highlight-search-terms.zip</a>, unzip it and upload the files overwriting the old ones via FTP. It should fix the issue you are seeing <img src='http://4visions.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-32954</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 18 Apr 2012 18:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-32954</guid>
		<description>Hey RavanH,

The plugin is great. thanks for your work! Right now it highlights my search terms if they are at the beginning of a string, but I was wondering if there was a way to make it highlight if the search terms if they are in the middle or end of a word? 

For example: 
-If I search &quot;Word&quot; and a result is &quot;WordPress&quot;, I get the proper highlighting &lt;strong&gt;Word&lt;/strong&gt;Press.
-If I search &quot;Press&quot; and the result is &quot;WordPress&quot;, I get no highlighting.

Am I doing something wrong?</description>
		<content:encoded><![CDATA[<p>Hey RavanH,</p>
<p>The plugin is great. thanks for your work! Right now it highlights my search terms if they are at the beginning of a string, but I was wondering if there was a way to make it highlight if the search terms if they are in the middle or end of a word? </p>
<p>For example:<br />
-If I search &#8220;Word&#8221; and a result is &#8220;WordPress&#8221;, I get the proper highlighting <strong>Word</strong>Press.<br />
-If I search &#8220;Press&#8221; and the result is &#8220;WordPress&#8221;, I get no highlighting.</p>
<p>Am I doing something wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RavanH</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-30375</link>
		<dc:creator>RavanH</dc:creator>
		<pubDate>Tue, 27 Mar 2012 15:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-30375</guid>
		<description>Hi Zaahid, thanks for reporting this... It&#039;s currently not programmed into this plugin to make the distinction between quoted and unquoted search strings but I&#039;ll take it as a feature request for future development ;)</description>
		<content:encoded><![CDATA[<p>Hi Zaahid, thanks for reporting this&#8230; It&#8217;s currently not programmed into this plugin to make the distinction between quoted and unquoted search strings but I&#8217;ll take it as a feature request for future development <img src='http://4visions.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zaahid</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-30052</link>
		<dc:creator>Zaahid</dc:creator>
		<pubDate>Sun, 25 Mar 2012 17:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-30052</guid>
		<description>Hello RavanH

I&#039;ve installed 0.7 and it works.... however when I search for a term with quotes .. ie &quot;Iran Oil&quot; (so it gets all posts with &#039;Iran Oil&#039; and not for eg  &#039;Iran has Oil&#039; in them).... the search results terms are not highlighted.     The highlight only works if I enter a search without quotes.

Any help appreciated.</description>
		<content:encoded><![CDATA[<p>Hello RavanH</p>
<p>I&#8217;ve installed 0.7 and it works&#8230;. however when I search for a term with quotes .. ie &#8220;Iran Oil&#8221; (so it gets all posts with &#8216;Iran Oil&#8217; and not for eg  &#8216;Iran has Oil&#8217; in them)&#8230;. the search results terms are not highlighted.     The highlight only works if I enter a search without quotes.</p>
<p>Any help appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-24059</link>
		<dc:creator>Amir</dc:creator>
		<pubDate>Tue, 28 Feb 2012 10:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-24059</guid>
		<description>Great! thanks. I&#039;ll try it out and report back :)</description>
		<content:encoded><![CDATA[<p>Great! thanks. I&#8217;ll try it out and report back <img src='http://4visions.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RavanH</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-23711</link>
		<dc:creator>RavanH</dc:creator>
		<pubDate>Fri, 24 Feb 2012 13:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-23711</guid>
		<description>Hi Amir, the plugin itself cannot do that but you can make it happen by editing your theme... What the plugin needs is the s query parameter in the page request. Let&#039;s say you searched on your site for the words &quot;windows 7&quot;, then the URL looks like http://www.amirdotan.com/blog/?s=windows+7 and it is the s=windows+7 that is used by the plugin to find the key words. Now on that search results page, the URLs for each post listed do not have that s= parameter anymore but if they would have, then the following page would have the search term highlighted as well. So the trick is to make your theme re-use the query parameters in the search results permalinks. 

There are two ways to approach this: 

1. Find the template that is used for the search results. It depends on your theme: it is usually called search.php but in TentyTen for example, you would need to create a new file called loop-search.php ... Then instead of using &lt;code&gt;the_permalink()&lt;/code&gt; you might try something like &lt;code&gt;echo add_query_arg(&#039;s&#039;, get_search_query(), get_permalink($post-&gt;ID))&lt;/code&gt;

... or ...

2. Edit your themes functions.php and add the following code
&lt;code&gt;
add_filter(&#039;the_permalink&#039;,&#039;add_my_search_query_to_permalink&#039;);

function add_my_search_query_to_permalink($url) {
  if( is_search() )
    return add_query_arg(&#039;s&#039;, get_search_query(), $url);
  else
    return $url;
} 
&lt;/code&gt;
Please note: these code snippets are untested so be prepared to revert to the original files to get your site back online ;)</description>
		<content:encoded><![CDATA[<p>Hi Amir, the plugin itself cannot do that but you can make it happen by editing your theme&#8230; What the plugin needs is the s query parameter in the page request. Let&#8217;s say you searched on your site for the words &#8220;windows 7&#8243;, then the URL looks like <a href="http://www.amirdotan.com/blog/?s=windows+7" rel="nofollow">http://www.amirdotan.com/blog/?s=windows+7</a> and it is the s=windows+7 that is used by the plugin to find the key words. Now on that search results page, the URLs for each post listed do not have that s= parameter anymore but if they would have, then the following page would have the search term highlighted as well. So the trick is to make your theme re-use the query parameters in the search results permalinks. </p>
<p>There are two ways to approach this: </p>
<p>1. Find the template that is used for the search results. It depends on your theme: it is usually called search.php but in TentyTen for example, you would need to create a new file called loop-search.php &#8230; Then instead of using <code>the_permalink()</code> you might try something like <code>echo add_query_arg('s', get_search_query(), get_permalink($post->ID))</code></p>
<p>&#8230; or &#8230;</p>
<p>2. Edit your themes functions.php and add the following code<br />
<code><br />
add_filter('the_permalink','add_my_search_query_to_permalink');</p>
<p>function add_my_search_query_to_permalink($url) {<br />
  if( is_search() )<br />
    return add_query_arg('s', get_search_query(), $url);<br />
  else<br />
    return $url;<br />
}<br />
</code><br />
Please note: these code snippets are untested so be prepared to revert to the original files to get your site back online <img src='http://4visions.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-23699</link>
		<dc:creator>Amir</dc:creator>
		<pubDate>Fri, 24 Feb 2012 08:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-23699</guid>
		<description>Perfect :) many thanks. I really appreciate it. By the way, is there an option to keep the highlights when accessing the post from the search resuls?</description>
		<content:encoded><![CDATA[<p>Perfect <img src='http://4visions.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  many thanks. I really appreciate it. By the way, is there an option to keep the highlights when accessing the post from the search resuls?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RavanH</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-23633</link>
		<dc:creator>RavanH</dc:creator>
		<pubDate>Thu, 23 Feb 2012 17:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-23633</guid>
		<description>Amir, I have just uploaded a new development version. 

Please ignore the new 0.7 version and download the Development Version from http://wordpress.org/extend/plugins/highlight-search-terms/download/ under &quot;Other Versions&quot; and install via WordPress or FTP upload. 

Let me know if that works for you :)</description>
		<content:encoded><![CDATA[<p>Amir, I have just uploaded a new development version. </p>
<p>Please ignore the new 0.7 version and download the Development Version from <a href="http://wordpress.org/extend/plugins/highlight-search-terms/download/" rel="nofollow">http://wordpress.org/extend/plugins/highlight-search-terms/download/</a> under &#8220;Other Versions&#8221; and install via WordPress or FTP upload. </p>
<p>Let me know if that works for you <img src='http://4visions.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amir</title>
		<link>http://4visions.nl/wordpress-plugins/highlight-search-terms/comment-page-1/#comment-23614</link>
		<dc:creator>Amir</dc:creator>
		<pubDate>Thu, 23 Feb 2012 11:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://4visions.nl/#comment-23614</guid>
		<description>Sure -&gt; http://www.amirdotan.com/blog/

Thanks a lot! :)</description>
		<content:encoded><![CDATA[<p>Sure -&gt; <a href="http://www.amirdotan.com/blog/" rel="nofollow">http://www.amirdotan.com/blog/</a></p>
<p>Thanks a lot! <img src='http://4visions.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

