<?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 type page template not working</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 08:28:10 +0000</pubDate>

<item>
<title>helgatheviking on "Custom post type page template not working"</title>
<link>http://themeshaper.com/forums/topic/custom-post-type-page-template-not-working#post-23874</link>
<pubDate>Mon, 21 Nov 2011 01:38:13 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23874@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you are so going about this the wrong way. &#60;/p&#62;
&#60;p&#62;please read the codex on Template Hierarchy... which is geeky wordpress speak for which wordpress template will display what type of content&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Template_Hierarchy#Custom_Post_Types_display&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Hierarchy#Custom_Post_Types_display&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;basically you can copy index.php, rename it archive-wheels.php and it will automagically show all the wheels posts, since it would be following the correct naming structure outlined in the codex&#60;/p&#62;
&#60;p&#62;or if you insist on doing it the 'page-template' way instead of using the built in approach, then you'd do better to copy from the blog template instead of page.php&#60;/p&#62;
&#60;p&#62;template-page-blog.php  &#60;/p&#62;
&#60;p&#62;hope that helps!
&#60;/p&#62;</description>
</item>
<item>
<title>iyamdman on "Custom post type page template not working"</title>
<link>http://themeshaper.com/forums/topic/custom-post-type-page-template-not-working#post-23873</link>
<pubDate>Sun, 20 Nov 2011 18:11:12 +0000</pubDate>
<dc:creator>iyamdman</dc:creator>
<guid isPermaLink="false">23873@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I am learning Wordpress and modifying the Themeatic framework, but I am learning as I go.&#60;/p&#62;
&#60;p&#62;I have a custom post type called 'wheels'.&#60;/p&#62;
&#60;p&#62;I took the page.php file, and renamed it wheels_page.php&#60;/p&#62;
&#60;p&#62;I added the page template header.&#60;/p&#62;
&#60;p&#62;Now I only want it to display posts only for the post type &#34;wheels&#34;.&#60;/p&#62;
&#60;p&#62;I added this line to the new page template (I put it just under the &#34;container&#34;):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;container&#38;quot;&#38;gt;

		&#38;lt;?php query_posts(array(&#38;#39;post_type&#38;#39;=&#38;gt;&#38;#39;wheels&#38;#39;)); ?&#38;gt;

			&#38;lt;?php thematic_abovecontent(); ?&#38;gt;

			&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I then created a page called &#34;Wheels&#34; and used wheels_page as the template.&#60;/p&#62;
&#60;p&#62;The PROBLEM is that when I open the page, it only shows one post, even though there are 6 post in &#34;wheels&#34;.&#60;/p&#62;
&#60;p&#62;Clearly I am not in the loop, but I have no idea where to find it, let alone how to make it a working page template.&#60;/p&#62;
&#60;p&#62;Can someone help me?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
