<?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 Tag: custom post type header</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 04:51:19 +0000</pubDate>

<item>
<title>leemon on "Rewrite post header"</title>
<link>http://themeshaper.com/forums/topic/rewrite-post-header#post-17716</link>
<pubDate>Mon, 13 Dec 2010 07:49:49 +0000</pubDate>
<dc:creator>leemon</dc:creator>
<guid isPermaLink="false">17716@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks! I'll try this.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Rewrite post header"</title>
<link>http://themeshaper.com/forums/topic/rewrite-post-header#post-17705</link>
<pubDate>Sun, 12 Dec 2010 20:32:18 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">17705@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i think add_filter would not be the way to go in this case.  i think i would use the override and do something like&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_postheader(){

if ($post-&#38;gt;post_type == &#38;#39;custom&#38;#39;) {
        // custom post header
        $custom = get_post_custom($post-&#38;gt;ID);

        $postheader = &#38;quot;some bacon&#38;quot;;

        return $postheader
    } else {
        thematic_post_header();
    }

}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>leemon on "Rewrite post header"</title>
<link>http://themeshaper.com/forums/topic/rewrite-post-header#post-17704</link>
<pubDate>Sun, 12 Dec 2010 20:20:42 +0000</pubDate>
<dc:creator>leemon</dc:creator>
<guid isPermaLink="false">17704@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;I'm using the new custom post types feature in my site and I'd like to have different post headers depending on the post type. A custom one for the custom post type and the standard one for standard posts.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_postheader() {
    global $id, $post;

    if ($post-&#38;gt;post_type == &#38;#39;custom&#38;#39;) {
        // custom post header
        $custom = get_post_custom($post-&#38;gt;ID);
        ...
        $postheader = ...
    } else {
        // standard thematic post header
        $postheader = ...
    }

    return $postheader;

}
add_filter (&#38;#39;thematic_postheader&#38;#39;, &#38;#39;childtheme_postheader&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is there a way to call the original thematic_postheader() function inside my customized one? I'd like not to have to paste its whole code in the 'standard thematic post header' section. Am I making any sense?&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
</item>

</channel>
</rss>
