<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Showing custom post types on your home/blog page</title>
	<atom:link href="http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Wed, 23 May 2012 07:51:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Valerie Lynn</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-1518517</link>
		<dc:creator>Valerie Lynn</dc:creator>
		<pubDate>Tue, 08 May 2012 16:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-1518517</guid>
		<description>Justin, thank you for your tutorial. I&#039;ve been wracking my brain trying to get my one little Custom Post Type to show up on the front page of my blog and if it weren&#039;t for you and Otto, I&#039;d still be chasing my tail. I appreciate the clarity.</description>
		<content:encoded><![CDATA[<p>Justin, thank you for your tutorial. I&#8217;ve been wracking my brain trying to get my one little Custom Post Type to show up on the front page of my blog and if it weren&#8217;t for you and Otto, I&#8217;d still be chasing my tail. I appreciate the clarity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrej</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-1060922</link>
		<dc:creator>Andrej</dc:creator>
		<pubDate>Thu, 05 Apr 2012 22:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-1060922</guid>
		<description>Hello!

Excellent tutorial, exactly what I searched for. With several tweaks to the if statement I got desired results.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>Excellent tutorial, exactly what I searched for. With several tweaks to the if statement I got desired results.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Catanzaro</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-828336</link>
		<dc:creator>Frank Catanzaro</dc:creator>
		<pubDate>Wed, 14 Mar 2012 21:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-828336</guid>
		<description>I am looking for a simple way (short code ?) to list all of the &quot;Article&quot; post type on my site in a regular blog post.  Reason being that I am using the Onswipe iPad plugin and it only shows regular posts, not pages or other post types.  I would like to at least be able to show the list of Articles on the site to iPad viewers.</description>
		<content:encoded><![CDATA[<p>I am looking for a simple way (short code ?) to list all of the &#8220;Article&#8221; post type on my site in a regular blog post.  Reason being that I am using the Onswipe iPad plugin and it only shows regular posts, not pages or other post types.  I would like to at least be able to show the list of Articles on the site to iPad viewers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Part 2: WordPress Custom Field vs Custom Post Type vs Custom Taxonomy</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-760412</link>
		<dc:creator>Part 2: WordPress Custom Field vs Custom Post Type vs Custom Taxonomy</dc:creator>
		<pubDate>Thu, 08 Mar 2012 17:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-760412</guid>
		<description>[...] Thanks to Justin Tadlock for the code above. If you would like a lot more detail about this, check out his site here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Thanks to Justin Tadlock for the code above. If you would like a lot more detail about this, check out his site here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Ferguson</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-739735</link>
		<dc:creator>Jeremy Ferguson</dc:creator>
		<pubDate>Tue, 06 Mar 2012 21:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-739735</guid>
		<description>Holly Thanks! Yours is the best of all of the code I&#039;ve tried. It still breaks the recent posts widget but I can live with that for now.</description>
		<content:encoded><![CDATA[<p>Holly Thanks! Yours is the best of all of the code I&#8217;ve tried. It still breaks the recent posts widget but I can live with that for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BlacksAngel</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-721618</link>
		<dc:creator>BlacksAngel</dc:creator>
		<pubDate>Mon, 05 Mar 2012 05:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-721618</guid>
		<description>If i have 2 custom post types like Movies and Series
What is the solution for this script ?

&lt;pre&gt;&lt;code&gt; &#039;Movies&#039;,
 &#039;post_status&#039; =&gt; &#039;publish&#039;,
 &#039;paged&#039; =&gt; $home_paged
);
query_posts($arguments);
?&gt;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>If i have 2 custom post types like Movies and Series<br />
What is the solution for this script ?</p>
<pre><code> 'Movies',
 'post_status' =&gt; 'publish',
 'paged' =&gt; $home_paged
);
query_posts($arguments);
?&gt;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holly</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-620048</link>
		<dc:creator>Holly</dc:creator>
		<pubDate>Sun, 19 Feb 2012 21:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-620048</guid>
		<description>Oh for God&#039;s sake, I solved the problem but now I cannot post a simple comment without half of it disappearing.  Such has been my day. One last try here lest I screw things up for folks more than they already were.

&lt;pre&gt;&lt;code&gt;&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //beginning of loop
     
 if(&#039;nav_menu_item&#039; !== get_post_type()) : // ADD THIS LINE  Exclude navigation menu items.

// rest of your loop code &lt;/code&gt;&lt;/pre&gt;

and at the end of the loop,

&lt;pre&gt;&lt;code&gt;&lt;?php endif; //ADD THIS LINE&lt;/code&gt;&lt;/pre&gt;

(plus of course add closing php tag but I think that was causing my code to get stripped out, so I omitted it here).</description>
		<content:encoded><![CDATA[<p>Oh for God&#8217;s sake, I solved the problem but now I cannot post a simple comment without half of it disappearing.  Such has been my day. One last try here lest I screw things up for folks more than they already were.</p>
<pre><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //beginning of loop

 if(&#039;nav_menu_item&#039; !== get_post_type()) : // ADD THIS LINE  Exclude navigation menu items.

// rest of your loop code </code></pre>
<p>and at the end of the loop,</p>
<pre><code>&lt;?php endif; //ADD THIS LINE</code></pre>
<p>(plus of course add closing php tag but I think that was causing my code to get stripped out, so I omitted it here).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holly</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-620042</link>
		<dc:creator>Holly</dc:creator>
		<pubDate>Sun, 19 Feb 2012 21:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-620042</guid>
		<description>I screwed up the code tags in my previous reply, thus mangling my entire purpose for posting! I&#039;ll just paste it as normal text here, forgive me.

At the beginning of the loop:

&lt;pre&gt;&lt;code&gt;&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //beginning of loop
     
 if(&#039;nav_menu_item&#039; !== get_post_type()) : // ADD THIS LINE  Exclude navigation menu items.

// rest of your loop code&lt;/code&gt;&lt;/pre&gt;

At the end of the loop:</description>
		<content:encoded><![CDATA[<p>I screwed up the code tags in my previous reply, thus mangling my entire purpose for posting! I&#8217;ll just paste it as normal text here, forgive me.</p>
<p>At the beginning of the loop:</p>
<pre><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //beginning of loop

 if(&#039;nav_menu_item&#039; !== get_post_type()) : // ADD THIS LINE  Exclude navigation menu items.

// rest of your loop code</code></pre>
<p>At the end of the loop:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holly</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-620037</link>
		<dc:creator>Holly</dc:creator>
		<pubDate>Sun, 19 Feb 2012 21:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-620037</guid>
		<description>OK folks. If you&#039;re having trouble getting Justin&#039;s code to play nicely with your navigation menus.

The following is the only solution I found that allowed me to use the code Justin provided here without either a) wiping out navigation menu items, or b) including navigation menu items but then having the menu items show up as though they were posts (which, let me tell you, looks extremely stupid)...neither of which is at all an acceptable solution.

Steps:
1) Follow Justin&#039;s directions to include the custom post types on your homepage.
2) To get the navigation menu items to reappear: 
As some others have suggested, add &#039;nav_menu_item&#039; to your array of custom post types in the code Justin has provided.
3) To prevent navigation menu items from also appearing within the loop as if they are posts:
Just inside of the loop, add an if statement to exclude the nav_menu_item post type.

For example, at the beginning of the loop:

&lt;pre&gt;&lt;code&gt;&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //beginning of loop
     
 if(&#039;nav_menu_item&#039; !== get_post_type()) : // ADD THIS LINE  Exclude navigation menu items.

// rest of your loop code &lt;/code&gt;&lt;/pre&gt;

and at the end of the loop:

Hope this is helpful to someone.</description>
		<content:encoded><![CDATA[<p>OK folks. If you&#8217;re having trouble getting Justin&#8217;s code to play nicely with your navigation menus.</p>
<p>The following is the only solution I found that allowed me to use the code Justin provided here without either a) wiping out navigation menu items, or b) including navigation menu items but then having the menu items show up as though they were posts (which, let me tell you, looks extremely stupid)&#8230;neither of which is at all an acceptable solution.</p>
<p>Steps:<br />
1) Follow Justin&#8217;s directions to include the custom post types on your homepage.<br />
2) To get the navigation menu items to reappear:<br />
As some others have suggested, add &#8216;nav_menu_item&#8217; to your array of custom post types in the code Justin has provided.<br />
3) To prevent navigation menu items from also appearing within the loop as if they are posts:<br />
Just inside of the loop, add an if statement to exclude the nav_menu_item post type.</p>
<p>For example, at the beginning of the loop:</p>
<pre><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //beginning of loop

 if(&#039;nav_menu_item&#039; !== get_post_type()) : // ADD THIS LINE  Exclude navigation menu items.

// rest of your loop code </code></pre>
<p>and at the end of the loop:</p>
<p>Hope this is helpful to someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thewayitis</title>
		<link>http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page#comment-522675</link>
		<dc:creator>Thewayitis</dc:creator>
		<pubDate>Sun, 18 Dec 2011 07:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=2283#comment-522675</guid>
		<description>if I changed &#039;if ( is_home()..&#039; to &#039;if (is_page(144)...&#039;.

it&#039;s not working?</description>
		<content:encoded><![CDATA[<p>if I changed &#8216;if ( is_home()..&#8217; to &#8216;if (is_page(144)&#8230;&#8217;.</p>
<p>it&#8217;s not working?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

