<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Search.php - Change "Search Results For" heading</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 18:10:44 +0000</pubDate>

<item>
<title>helgatheviking on "Search.php - Change "Search Results For" heading"</title>
<link>http://themeshaper.com/forums/topic/searchphp-change-search-results-for-heading#post-22888</link>
<pubDate>Mon, 29 Aug 2011 16:02:46 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22888@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;good catch sumansinha.
&#60;/p&#62;</description>
</item>
<item>
<title>sumansinha on "Search.php - Change "Search Results For" heading"</title>
<link>http://themeshaper.com/forums/topic/searchphp-change-search-results-for-heading#post-22881</link>
<pubDate>Mon, 29 Aug 2011 04:58:49 +0000</pubDate>
<dc:creator>sumansinha</dc:creator>
<guid isPermaLink="false">22881@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@helgatheviking: You missed the &#60;code&#62;return&#60;/code&#62;. Also the first &#60;code&#62;$content .=&#60;/code&#62;... statement is better written as &#60;code&#62;$content =&#60;/code&#62;... if you want to replace the default 'Search Results For'. But thanks a bunch for pointing me in the right direction! :) &#60;/p&#62;
&#60;p&#62;Those minor corrections below, if I may... :)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function change_search_title($content) {
if (is_search()) {
		$content = &#38;#39;&#38;lt;h1 class=&#38;quot;page-title&#38;quot;&#38;gt;&#38;#39;;
		$content .= __(&#38;#39;I Found Your Bacon:&#38;#39;, &#38;#39;thematic&#38;#39;); //used to say Search Results For:
		$content .= &#38;#39; &#38;lt;span id=&#38;quot;search-terms&#38;quot;&#38;gt;&#38;#39;;
		$content .= esc_html(stripslashes($_GET[&#38;#39;s&#38;#39;]));
		$content .= &#38;#39;&#38;lt;/span&#38;gt;&#38;lt;/h1&#38;gt;&#38;#39;;
}
return $content;
}
add_filter( &#38;#39;thematic_page_title&#38;#39;, &#38;#39;change_search_title&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>helgatheviking on "Search.php - Change "Search Results For" heading"</title>
<link>http://themeshaper.com/forums/topic/searchphp-change-search-results-for-heading#post-18961</link>
<pubDate>Fri, 04 Feb 2011 08:30:50 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">18961@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;this seems to be generated by the thematic_page_title() function in content-extensions.php&#60;/p&#62;
&#60;p&#62;i believe you'd need to filter it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function change_search($content){
        if (is_search()) {
		$content .= &#38;#39;&#38;lt;h1 class=&#38;quot;page-title&#38;quot;&#38;gt;&#38;#39;;
		$content .= __(&#38;#39;I Found Your Bacon:&#38;#39;, &#38;#39;thematic&#38;#39;); //used to say Search Results For:
		$content .= &#38;#39; &#38;lt;span id=&#38;quot;search-terms&#38;quot;&#38;gt;&#38;#39;;
		$content .= esc_html(stripslashes($_GET[&#38;#39;s&#38;#39;]));
		$content .= &#38;#39;&#38;lt;/span&#38;gt;&#38;lt;/h1&#38;gt;&#38;#39;;
	}
}
add_filter(&#38;#39;thematic_page_title&#38;#39;,&#38;#39;change_search&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>iCristiano on "Search.php - Change "Search Results For" heading"</title>
<link>http://themeshaper.com/forums/topic/searchphp-change-search-results-for-heading#post-18956</link>
<pubDate>Fri, 04 Feb 2011 02:05:29 +0000</pubDate>
<dc:creator>iCristiano</dc:creator>
<guid isPermaLink="false">18956@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Any help with filtering the &#34;Search Results For&#34; heading??
&#60;/p&#62;</description>
</item>
<item>
<title>BAC on "Search.php - Change "Search Results For" heading"</title>
<link>http://themeshaper.com/forums/topic/searchphp-change-search-results-for-heading#post-10173</link>
<pubDate>Thu, 25 Feb 2010 13:54:58 +0000</pubDate>
<dc:creator>BAC</dc:creator>
<guid isPermaLink="false">10173@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have been digging about Thematic trying to find the function that outputs the text of the heading above the search results.&#60;/p&#62;
&#60;p&#62;i.e.&#60;br /&#62;
search results for: my search terms &#60;/p&#62;
&#60;p&#62;I would like to change this to&#60;/p&#62;
&#60;p&#62;to&#60;br /&#62;
X results for: my search terms (0.33 seconds)&#60;/p&#62;
&#60;p&#62;Ideally I want to use a filter in functions.php&#60;/p&#62;
&#60;p&#62;The following code correctly returns the results count and search execution time.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php /* Search Count */ $allsearch = &#38;#38;new WP_Query(&#34;s=$s&#38;#38;showposts=-1&#34;); $key = wp_specialchars($s, 1); $count = $allsearch-&#38;gt;post_count; _e(''); _e('&#38;lt;span class=&#34;search-terms&#34;&#38;gt;'); echo $key; _e('&#38;lt;/span&#38;gt;'); _e(''); echo $count . ' '; _e('results'); wp_reset_query(); ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
 &#38;lt;?php timer_stop(1); ?&#38;gt;  seconds)&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Does anyone know the best way of achieving this?&#60;/p&#62;
&#60;p&#62;This is a nice little enhancement that I am sure others might be interested in.&#60;/p&#62;
&#60;p&#62;Thanks for any help on this.&#60;/p&#62;
&#60;p&#62;BAC
&#60;/p&#62;</description>
</item>

</channel>
</rss>
