<?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 page templates for displaying specific posts</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 04:42:08 +0000</pubDate>

<item>
<title>Victorius on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26568</link>
<pubDate>Mon, 23 Apr 2012 16:45:29 +0000</pubDate>
<dc:creator>Victorius</dc:creator>
<guid isPermaLink="false">26568@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi! That plugin looks great! It will save me a lot of time (and headache)&#60;/p&#62;
&#60;p&#62;Good luck on your plugin! (and your portfolio)
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26563</link>
<pubDate>Mon, 23 Apr 2012 14:43:05 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26563@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;if it is anything like my portfolio website it might &#60;em&#62;never&#60;/em&#62; be done. :)  but in the mean time, i prefer to handle theme options with devin price's killer options framework plugin&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wptheming.com/options-framework-plugin/&#34; rel=&#34;nofollow&#34;&#62;http://wptheming.com/options-framework-plugin/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Victorius on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26562</link>
<pubDate>Mon, 23 Apr 2012 14:14:56 +0000</pubDate>
<dc:creator>Victorius</dc:creator>
<guid isPermaLink="false">26562@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi! That´s a good idea! Theme options are beyond my current knowledge at the moment. Fortunately there´s plenty of material about that topic in the web, and with enough patience I think I will be able to work it out.&#60;/p&#62;
&#60;p&#62;I would be interested to try the plugin you´re working on, once it´s released.&#60;/p&#62;
&#60;p&#62;Thanks again for your support,&#60;br /&#62;
Best regards&#60;br /&#62;
Victor
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26559</link>
<pubDate>Mon, 23 Apr 2012 11:08:08 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26559@http://themeshaper.com/forums/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;1) It would be easier for my clients to change the content displayed before the posts ( for taxonomies it´s easy, but for CPTs the description is in the register_post_type())&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;that is true.  you can make an options page for the CPT, i'm working on that in my upcoming (ie upcoming some day) portfolio plugin.  you can also change the slugs w/ the same approach.
&#60;/p&#62;</description>
</item>
<item>
<title>Victorius on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26558</link>
<pubDate>Mon, 23 Apr 2012 09:31:13 +0000</pubDate>
<dc:creator>Victorius</dc:creator>
<guid isPermaLink="false">26558@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Helga!&#60;/p&#62;
&#60;p&#62;Thanks for yor prompt reply! your support is very helpful!&#60;/p&#62;
&#60;p&#62;I thought page templates could be a good idea for two reasons:&#60;/p&#62;
&#60;p&#62;1) It would be easier for my clients to change the content displayed before the posts ( for taxonomies it´s easy, but for CPTs the description is in the register_post_type())&#60;/p&#62;
&#60;p&#62;2) I was planning to list the subpages with a plugin or with wp_list_pages, and using Option 1, these page are not recognized as pages or child pages.&#60;/p&#62;
&#60;p&#62;Anyway, I followed your advice. I have changed all the &#34;archives pages&#34; in the custom menu to use WP hierarchy. To list the pages (and subpages) I am using Gecka Submenu plugin (that lists subpages from the custom menu) and now everything is working as expected.&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;br /&#62;
Víctor
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26548</link>
<pubDate>Mon, 23 Apr 2012 00:35:22 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26548@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;option 1 uses default WP behavior.  why use a page template?
&#60;/p&#62;</description>
</item>
<item>
<title>Victorius on "Custom page templates for displaying specific posts"</title>
<link>http://themeshaper.com/forums/topic/custom-page-templates-for-displaying-specific-posts#post-26547</link>
<pubDate>Sun, 22 Apr 2012 22:16:42 +0000</pubDate>
<dc:creator>Victorius</dc:creator>
<guid isPermaLink="false">26547@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi! I am new in WP, and for my first theme I am using custom post types (CPTs) and taxanomies. (my CPTs are “talleres” and “cursos”) &#60;/p&#62;
&#60;p&#62;They are working fine but I have doubts about how I should organize and display their posts. I would like to know the best practices in these cases. (In addition, I am using WP custom menu to organize my menu with the different pages and CPTs)&#60;/p&#62;
&#60;p&#62;I have tried two ways of displaying the post:  &#60;/p&#62;
&#60;p&#62;OPTION 1: Using WP template hierarchy. In WP custom menu I add a custom link with the URL of the CPT and the corresponding label. This way, WP will look for the file archive-{post-type-slug}.php, and if it doesn´t exists WP will get archive.php. ( I have modified a copy of archive.php in my child theme to show the descriptions of taxonomies and CPTs to make a small presentation before displaying the posts)&#60;/p&#62;
&#60;p&#62;OPTION 2: Using custom page templates. Thematic includes some templates like “blog” that I could modify to display specific posts. But what I am trying to do is to get the content of the page (a presentation for the posts that are going to be displayed below), and after that content, display the loop of the CPT. You can see the code of my template page template-talleres.php here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/TWQE5Uyw&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/TWQE5Uyw&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And here is the link of the page that uses the template page:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.vicdilu.com/pruebas/meditaya/talleres/&#34; rel=&#34;nofollow&#34;&#62;http://www.vicdilu.com/pruebas/meditaya/talleres/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(I am focusing on the funcionalities, and I haven´t worked much on the style of the web)&#60;/p&#62;
&#60;p&#62;What I did is to copy and rename archives.php template page. After the content, instead of using thematic_archives() I used the thematic_archive_loop() of archive.php with the query for the  CPT. &#60;/p&#62;
&#60;p&#62;I prefer OPTION 2, however I don´t know if this is an appropiate way to work with CPTs.&#60;/p&#62;
&#60;p&#62;On the other hand, I am also using page templates to display entries of different categories (for example, “profesores” or “noticias”). They display the content as expected, but somehow, they are not recognized as subpages: I am using a plugin to display subpages of the current pages, and if I use these page templates they are not shown in the list of subpages. I have also tried with wp_nav_menu and these pages are not recognized as current_page_item. You can see how subpages is not working in this examples:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.vicdilu.com/pruebas/meditaya/recursos/&#34; rel=&#34;nofollow&#34;&#62;http://www.vicdilu.com/pruebas/meditaya/recursos/&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.vicdilu.com/pruebas/meditaya/recursos/noticias/&#34; rel=&#34;nofollow&#34;&#62;http://www.vicdilu.com/pruebas/meditaya/recursos/noticias/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I don´t know where the problem could be? Any idea or suggestion?&#60;/p&#62;
&#60;p&#62;I have also tried to use wp_query or get_posts to do the loop in the template page, but the problem remains. I would appreciate any help.&#60;/p&#62;
&#60;p&#62;Thanks in advance,&#60;br /&#62;
Víctor
&#60;/p&#62;</description>
</item>

</channel>
</rss>
