<?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: Custom Post Types</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 19:08:00 +0000</pubDate>

<item>
<title>Jonny Janiero on "Custom Post Types"</title>
<link>http://themeshaper.com/forums/topic/custom-post-types#post-13338</link>
<pubDate>Wed, 23 Jun 2010 21:29:00 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">13338@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;hi all,&#60;br /&#62;
just getting to grips with new wordpress 3.0 features. found (here) great support for most. can't seem to get the custom post types to display&#60;/p&#62;
&#60;p&#62;i used justin tadlocks example code below but it wipes out my nav menu&#60;br /&#62;
any ideas?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;pre_get_posts&#38;#39;, &#38;#39;my_get_posts&#38;#39; );

function my_get_posts( $query ) {

	if ( is_home() )
		$query-&#38;gt;set( &#38;#39;post_type&#38;#39;, array( &#38;#39;post&#38;#39;, &#38;#39;page&#38;#39;, &#38;#39;album&#38;#39;, &#38;#39;movie&#38;#39;, &#38;#39;quote&#38;#39;, &#38;#39;attachment&#38;#39; ) );

	return $query;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
