<?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: WordPress Hack #3:  Custom Search Results Page and Template</title>
	<atom:link href="http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/</link>
	<description>Wordpress Consulting, Wordpress Help, Custom Themes and Plugins</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:54:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: rishwan</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-9084</link>
		<dc:creator>rishwan</dc:creator>
		<pubDate>Wed, 31 Mar 2010 10:32:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-9084</guid>
		<description>I have a question. I have made a custom theme with a custom search page to show the search results. I have managed to make it work, but only that the WP codex showed me the code which only prints out the post title and the meta data.

I looked at your code and modified mine to show the post content too. The problem here is.. when this is done.. it shows pages in full too in the search results. SO I am wondering if there is a way to limit the number of lines printed as search results for posts and page contents. 

I would love to know.. please email me back!</description>
		<content:encoded><![CDATA[<p>I have a question. I have made a custom theme with a custom search page to show the search results. I have managed to make it work, but only that the WP codex showed me the code which only prints out the post title and the meta data.</p>
<p>I looked at your code and modified mine to show the post content too. The problem here is.. when this is done.. it shows pages in full too in the search results. SO I am wondering if there is a way to limit the number of lines printed as search results for posts and page contents. </p>
<p>I would love to know.. please email me back!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-8876</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 01 Mar 2010 18:41:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-8876</guid>
		<description>no.</description>
		<content:encoded><![CDATA[<p>no.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam@Investment Management Marketing EverydayTenacity</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-8795</link>
		<dc:creator>Adam@Investment Management Marketing EverydayTenacity</dc:creator>
		<pubDate>Wed, 17 Feb 2010 01:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-8795</guid>
		<description>This is a great article. Just another thing to add to my to do list as I customize out my blog. 

Are any of the steps different when using WP 2.8 and above?
.-= Adam@Investment Management Marketing EverydayTenacity&#180;s last blog ..&lt;a href=&quot;http://everydaytenacity.com/asset-management-marketing/attention-investment-managers-platform-video-syndicate&quot;&gt;Attention Investment Managers: new platform to syndicate video content&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>This is a great article. Just another thing to add to my to do list as I customize out my blog. </p>
<p>Are any of the steps different when using WP 2.8 and above?<br />
.-= Adam@Investment Management Marketing EverydayTenacity&#180;s last blog ..<a href="http://everydaytenacity.com/asset-management-marketing/attention-investment-managers-platform-video-syndicate">Attention Investment Managers: new platform to syndicate video content</a> =-.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben@OurBlogLog</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-8530</link>
		<dc:creator>Ruben@OurBlogLog</dc:creator>
		<pubDate>Mon, 11 Jan 2010 03:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-8530</guid>
		<description>Excellent Tutorial , Before this I never touched the php files for the search feature. Thanks Alot</description>
		<content:encoded><![CDATA[<p>Excellent Tutorial , Before this I never touched the php files for the search feature. Thanks Alot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-7961</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 18 Oct 2009 04:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-7961</guid>
		<description>Look through my &lt;a href=&quot;http://www.jtpratt.com/30-wordpress-hacks-in-30-days/&quot;&gt;30 Wordpress hacks&lt;/a&gt; series home page and read the articles on wordpress templates.  Many, if not most, Wordpress themes I come across don&#039;t have a search.php at all.  This is not uncommon.  Learn the WP template hierarchy for themes.  A theme can consist of only a half dozen files, or dozens and dozens.  In theory you could run an entire barebones them on just a single index.php and a single stylesheet.  You see, if there is no search results page template (search.php) then by default every theme reverts back to index.php and displays search results there.  You can create your own search.php from your index.php and customizing it.</description>
		<content:encoded><![CDATA[<p>Look through my <a href="http://www.jtpratt.com/30-wordpress-hacks-in-30-days/">30 WordPress hacks</a> series home page and read the articles on wordpress templates.  Many, if not most, WordPress themes I come across don&#8217;t have a search.php at all.  This is not uncommon.  Learn the WP template hierarchy for themes.  A theme can consist of only a half dozen files, or dozens and dozens.  In theory you could run an entire barebones them on just a single index.php and a single stylesheet.  You see, if there is no search results page template (search.php) then by default every theme reverts back to index.php and displays search results there.  You can create your own search.php from your index.php and customizing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjorn Lindstrom</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-7954</link>
		<dc:creator>Bjorn Lindstrom</dc:creator>
		<pubDate>Sat, 17 Oct 2009 20:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-7954</guid>
		<description>Hi,

I really liked your post ... extremely helpful and informative, way beyond anything I have found out there.  As an ex-programmer, and new to wordpress, I am eager to read the rest of your articles.

I do have one question however ... my particular template does not have a &quot;search.php&quot;.  I have looked everywhere, and can&#039;t even find it anywhere in my website server directory structure!  Is it safe for me to create a search.php?  I would like to modify mine to use a more familiar &quot;manufacturer, model, color&quot; type search, combine some of them to be used for the wordpress article / post search, but then use those elements to perform my own product-specific search in my own MySQL database.  

I don&#039;t need to know how to do database queries and lookups, I know that already ... just need to know how to tap into search.php when I can&#039;t find it anywhere on my server.

Thanks,

Bjorn</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I really liked your post &#8230; extremely helpful and informative, way beyond anything I have found out there.  As an ex-programmer, and new to wordpress, I am eager to read the rest of your articles.</p>
<p>I do have one question however &#8230; my particular template does not have a &#8220;search.php&#8221;.  I have looked everywhere, and can&#8217;t even find it anywhere in my website server directory structure!  Is it safe for me to create a search.php?  I would like to modify mine to use a more familiar &#8220;manufacturer, model, color&#8221; type search, combine some of them to be used for the wordpress article / post search, but then use those elements to perform my own product-specific search in my own MySQL database.  </p>
<p>I don&#8217;t need to know how to do database queries and lookups, I know that already &#8230; just need to know how to tap into search.php when I can&#8217;t find it anywhere on my server.</p>
<p>Thanks,</p>
<p>Bjorn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Marques</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-7299</link>
		<dc:creator>Eduardo Marques</dc:creator>
		<pubDate>Sun, 06 Sep 2009 20:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-7299</guid>
		<description>Nice article about custom search results. On my particular case I kept the original wordpress search and added a google search after wordpress&#039;s results. This way you can make sure the visitor gets your most recent posts and he also has the option to use google to get more relevant search results. If none of my posts attends what he seeks he can also follow another link provided by google&#039;s search. Oh... and you can use it with Adsense too! :)
.-= Eduardo Marques&#180;s last blog ..&lt;a href=&quot;http://blog.emporio-web.com/lang/all-lg/2009/09/motor-de-busca-do-wordpress-x-googlewordpress-search-engine-x-google&quot; rel=&quot;nofollow&quot;&gt;Motor de busca do Wordpress x Google&#124;Wordpress search engine x Google&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Nice article about custom search results. On my particular case I kept the original wordpress search and added a google search after wordpress&#8217;s results. This way you can make sure the visitor gets your most recent posts and he also has the option to use google to get more relevant search results. If none of my posts attends what he seeks he can also follow another link provided by google&#8217;s search. Oh&#8230; and you can use it with Adsense too! <img src='http://www.jtpratt.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
.-= Eduardo Marques&#180;s last blog ..<a href="http://blog.emporio-web.com/lang/all-lg/2009/09/motor-de-busca-do-wordpress-x-googlewordpress-search-engine-x-google" rel="nofollow">Motor de busca do WordPress x Google|Wordpress search engine x Google</a> =-.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kuld33p</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-6605</link>
		<dc:creator>kuld33p</dc:creator>
		<pubDate>Sun, 05 Jul 2009 10:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-6605</guid>
		<description>thanks for the tip man. I really liked your 30 hacks in 30 days post.
.-= kuld33p&#180;s last blog ..&lt;a href=&quot;http://www.revolutioners.com/how-to-display-related-posts-in-vigilance-theme-wordpress/&quot; rel=&quot;nofollow&quot;&gt;How to : Display Related Posts in Vigilance Theme Wordpress&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>thanks for the tip man. I really liked your 30 hacks in 30 days post.<br />
.-= kuld33p&#180;s last blog ..<a href="http://www.revolutioners.com/how-to-display-related-posts-in-vigilance-theme-wordpress/" rel="nofollow">How to : Display Related Posts in Vigilance Theme WordPress</a> =-.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rohin</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-5352</link>
		<dc:creator>rohin</dc:creator>
		<pubDate>Sat, 21 Mar 2009 14:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-5352</guid>
		<description>this has been helpful , but what about trying to create your own search.php with custom filters to search specific parts of your website. I&#039;m dying to find out how to do that  =)]

&lt;abbr&gt;&lt;em&gt;rohins last blog post..&lt;a href=&quot;http://sherifabdou.com/2009/03/optimization-of-your-websites-load-time/&quot; rel=&quot;nofollow&quot;&gt;Optimization of Your Website’s Load Time&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>this has been helpful , but what about trying to create your own search.php with custom filters to search specific parts of your website. I&#8217;m dying to find out how to do that  =)]</p>
<p><abbr><em>rohins last blog post..<a href="http://sherifabdou.com/2009/03/optimization-of-your-websites-load-time/" rel="nofollow">Optimization of Your Website’s Load Time</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: REP</title>
		<link>http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-4063</link>
		<dc:creator>REP</dc:creator>
		<pubDate>Fri, 11 Jul 2008 18:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtpratt.com/wordpress-hack-3-custom-search-results-page-and-template/#comment-4063</guid>
		<description>Thanks for the very useful article.  I&#039;m going to modify the search page templates for my sites in this manner. A trifle OT, but I agree that Google Custom Search is not the way to provide search for one&#039;s own site, but I do think that a Google custom search engine, monetized with Adsense, can be a nice addition to a site.  If nothing else, it helps earn a little bit of money from the &quot;bounce&quot; traffic.  And I found that registering some custom search engines in a few places earned me a few back links.  And, among other things, by having a search engine that people can add to the Google toolbar, and/or add to search box in the upper righthand corner of their browser can bring them back to the site for return visits.</description>
		<content:encoded><![CDATA[<p>Thanks for the very useful article.  I&#8217;m going to modify the search page templates for my sites in this manner. A trifle OT, but I agree that Google Custom Search is not the way to provide search for one&#8217;s own site, but I do think that a Google custom search engine, monetized with Adsense, can be a nice addition to a site.  If nothing else, it helps earn a little bit of money from the &#8220;bounce&#8221; traffic.  And I found that registering some custom search engines in a few places earned me a few back links.  And, among other things, by having a search engine that people can add to the Google toolbar, and/or add to search box in the upper righthand corner of their browser can bring them back to the site for return visits.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

