<?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: Revision 296 - Fixes, changes and something new</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 20 Jun 2013 01:58:17 +0000</pubDate>

<item>
<title>Chris on "Revision 296 - Fixes, changes and something new"</title>
<link>http://themeshaper.com/forums/topic/revision-296-fixes-changes-and-something-new#post-1585</link>
<pubDate>Wed, 04 Feb 2009 13:22:14 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">1585@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Some more fine tuning for the page title in REV 298
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Revision 296 - Fixes, changes and something new"</title>
<link>http://themeshaper.com/forums/topic/revision-296-fixes-changes-and-something-new#post-1582</link>
<pubDate>Wed, 04 Feb 2009 12:45:41 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">1582@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Issue 21: I implemented the following code for creating the robots-tag:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if((is_home() &#38;#38;&#38;#38; ($paged &#38;lt; 2 )) &#124;&#124; is_front_page() &#124;&#124; is_single() &#124;&#124; is_page()
&#124;&#124; is_attachment()){
    echo &#38;#39;&#38;lt;meta name=&#38;quot;robots&#38;quot; content=&#38;quot;index,follow&#38;quot; /&#38;gt;&#38;#39;;
} elseif (is_search()) {
    echo &#38;#39;&#38;lt;meta name=&#38;quot;robots&#38;quot; content=&#38;quot;noindex,nofollow&#38;quot; /&#38;gt;&#38;#39;;
} else {
    echo &#38;#39;&#38;lt;meta name=&#38;quot;robots&#38;quot; content=&#38;quot;noindex,follow&#38;quot; /&#38;gt;&#38;#39;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Issue 8: The above mentioned changes should prevent indexing duplicate content.&#60;/p&#62;
&#60;p&#62;Issue 24: Combining tags with ',' or '+' like &#60;a href=&#34;http://mysite.com/tag/tag1+tag2/&#34; rel=&#34;nofollow&#34;&#62;http://mysite.com/tag/tag1+tag2/&#60;/a&#62; will now have a proper title like 'Tag-Archiv: wordpress + iphone'&#60;/p&#62;
&#60;p&#62;Now the new stuff:&#60;/p&#62;
&#60;p&#62;In header.php one hook will now create the HEAD. This is done by using a lot of actions:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_head&#38;#39;, 1);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_title&#38;#39;, 2);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_contenttype&#38;#39;, 3);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_description&#38;#39;, 4);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_robots&#38;#39;, 5);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_stylesheet&#38;#39;, 6);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_rss&#38;#39;, 7);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_pingback&#38;#39;, 8);
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_commentreply&#38;#39;, 9);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you're running one of the SEO packages you might want to remove the standard description and the standard robots settings.&#60;/p&#62;
&#60;p&#62;This can be done in your child themes functions.php. Just add the folowing function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function remove_somestuff () {
     remove_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_description&#38;#39;, 4);
     remove_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_header_create_robots&#38;#39;, 5);
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;remove_somestuff);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You want to replace the code generating the title with your own code .. just remove and replace it in your functions.php&#60;/p&#62;
&#60;p&#62;Please comment or report bugs!&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>

</channel>
</rss>
