<?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: My code used for filtering the post title doesn't work</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 15:35:56 +0000</pubDate>

<item>
<title>gattonero on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12644</link>
<pubDate>Thu, 27 May 2010 23:53:41 +0000</pubDate>
<dc:creator>gattonero</dc:creator>
<guid isPermaLink="false">12644@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;(I've resolved the problem with a workaround, but the question remains for an educational purpose ;) )
&#60;/p&#62;</description>
</item>
<item>
<title>gattonero on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12643</link>
<pubDate>Thu, 27 May 2010 22:46:45 +0000</pubDate>
<dc:creator>gattonero</dc:creator>
<guid isPermaLink="false">12643@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;;)&#60;/p&#62;
&#60;p&#62;It seems I have to use your help again. I've quite understood that - differently from &#34;normal&#34; themes - knowing HTML and CSS is not enough to properly use and adapt Thematic.&#60;br /&#62;
You need to know PHP too, and in a good way.&#60;/p&#62;
&#60;p&#62;I'd need to &#34;filter&#34; thematic_content(), to have included this code *before* what we classically called with the_content():&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;addtoany_share_save_container&#38;quot;&#38;gt;&#38;lt;?php if( function_exists(&#38;#39;ADDTOANY_SHARE_SAVE_KIT&#38;#39;) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;But I'm not able to. Could you help me?&#60;br /&#62;
(I'm a fast learner: using filters is a HUGE facilitation to Thematic modification).
&#60;/p&#62;</description>
</item>
<item>
<title>arturkim on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12630</link>
<pubDate>Thu, 27 May 2010 07:16:44 +0000</pubDate>
<dc:creator>arturkim</dc:creator>
<guid isPermaLink="false">12630@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You're welcome!
&#60;/p&#62;</description>
</item>
<item>
<title>gattonero on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12629</link>
<pubDate>Thu, 27 May 2010 06:25:52 +0000</pubDate>
<dc:creator>gattonero</dc:creator>
<guid isPermaLink="false">12629@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;So stupid... thanks :)&#60;br /&#62;
(Don't know why I deleted that code...)
&#60;/p&#62;</description>
</item>
<item>
<title>arturkim on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12626</link>
<pubDate>Thu, 27 May 2010 01:27:20 +0000</pubDate>
<dc:creator>arturkim</dc:creator>
<guid isPermaLink="false">12626@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You are not returning anything inside the function.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;return apply_filters(&#38;#39;cm_postheader_posttitle&#38;#39;,$posttitle);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Artur Kim
&#60;/p&#62;</description>
</item>
<item>
<title>gattonero on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12625</link>
<pubDate>Wed, 26 May 2010 23:21:42 +0000</pubDate>
<dc:creator>gattonero</dc:creator>
<guid isPermaLink="false">12625@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;(I tried get_the_post_thumbnail but as a result I get *nothing*...)
&#60;/p&#62;</description>
</item>
<item>
<title>gattonero on "My code used for filtering the post title doesn't work"</title>
<link>http://themeshaper.com/forums/topic/my-code-used-for-filtering-the-post-title-doesnt-work#post-12624</link>
<pubDate>Wed, 26 May 2010 23:19:11 +0000</pubDate>
<dc:creator>gattonero</dc:creator>
<guid isPermaLink="false">12624@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi buddies,&#60;br /&#62;
sorry to bother you again but the more I go into Thematic, the more I understand, the more I have unexpected results ;)&#60;/p&#62;
&#60;p&#62;I've learned the existence of the filters. And that's so much fun, and so much good.&#60;br /&#62;
But there must be something wrong in my code, 'cause it doesn't wor properly. Could you help me understand, maybe?&#60;/p&#62;
&#60;p&#62;What I want to do is to add post thumbnails and change a bit the order of the elements of the posttitle...&#60;/p&#62;
&#60;p&#62;Here's my code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function cm_postheader_posttitle() {
	    if (is_single() &#124;&#124; is_page()) {
        $posttitle = &#38;#39;&#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39; . get_the_title() . &#38;quot;&#38;lt;/h1&#38;gt;\n&#38;quot;;
    } elseif (is_404()) {
        $posttitle = &#38;#39;&#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;Not Found&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;quot;&#38;lt;/h1&#38;gt;\n&#38;quot;;
    } else {
        $posttitle = &#38;#39;&#38;lt;div class=&#38;quot;testatapost&#38;quot;&#38;gt;&#38;#39;;
        $posttitle .= the_post_thumbnail();
        $posttitle .= &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;;
        $posttitle .= get_permalink();
        $posttitle .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39;;
        $posttitle .= __(&#38;#39;Permalink to &#38;#39;, &#38;#39;thematic&#38;#39;) . the_title_attribute(&#38;#39;echo=0&#38;#39;);
        $posttitle .= &#38;#39;&#38;quot; rel=&#38;quot;bookmark&#38;quot;&#38;gt;&#38;lt;div class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39;;
        $posttitle .= &#38;#39;&#38;lt;h2&#38;gt;&#38;#39;;
        $posttitle .= get_the_title();
        $posttitle .= &#38;#39;&#38;lt;/h2&#38;gt;&#38;lt;span class=&#38;quot;entry-excerpt&#38;quot;&#38;gt;&#38;#39;;
        $posttitle .= get_the_excerpt();
        $posttitle .= &#38;quot;&#38;lt;/span&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;\n&#38;quot;;
    }
}

add_filter(&#38;#39;thematic_postheader_posttitle&#38;#39;, &#38;#39;cm_postheader_posttitle&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The problem is that, as a result, I get *only* the thumbnail image and nothing more (not even the&#60;br /&#62;
&#60;code&#62;&#38;lt;div class=&#38;quot;testatapost&#38;quot;&#38;gt;&#60;/code&#62;&#60;br /&#62;
that is before the command to call the thumbnail.&#60;/p&#62;
&#60;p&#62;Any idea?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
