<?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: category template</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 12:31:47 +0000</pubDate>

<item>
<title>Nathan on "Category template"</title>
<link>http://themeshaper.com/forums/topic/category-template#post-9173</link>
<pubDate>Thu, 21 Jan 2010 22:29:27 +0000</pubDate>
<dc:creator>Nathan</dc:creator>
<guid isPermaLink="false">9173@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;OK, I figured out the styling of a category and I made a page template but the contents show in the wrong area.  Here is the code:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
/*&#60;br /&#62;
Template Name: Signup Template&#60;br /&#62;
*/&#60;br /&#62;
include( TEMPLATEPATH . '/index.php' ); //this loads the thematic parent framework index.php&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
global $options;&#60;br /&#62;
foreach ($options as $value) {&#60;br /&#62;
    if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }&#60;br /&#62;
    else { $$value['id'] = get_option( $value['id'] ); }&#60;br /&#62;
    }&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;?php get_header() ?&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;div id=&#34;container&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;div id=&#34;content&#34;&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;?php thematic_navigation_above();?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php get_sidebar('index-top') ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php thematic_above_indexloop() ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php thematic_indexloop() ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;/p&#62;
&#60;p&#62;function childtheme_second_loop() {&#60;/p&#62;
&#60;p&#62;	if (is_page(sign-up)) {&#60;br /&#62;
		query_posts(&#34;cat_ID=3&#38;#38;showposts=3&#34;);&#60;br /&#62;
		thematic_index_loop();&#60;br /&#62;
		}   else {&#60;br /&#62;
		return;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_action('thematic_below_indexloop', 'childtheme_second_loop' ); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php thematic_below_indexloop() ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php get_sidebar('index-bottom') ?&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;?php thematic_navigation_below();?&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;&#60;br /&#62;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php thematic_sidebar() ?&#38;gt;&#60;br /&#62;
&#38;lt;?php get_footer() ?&#38;gt;&#60;/p&#62;
&#60;p&#62;What happens is the posts show up outside the wrapper below the page.  Any ideas?
&#60;/p&#62;</description>
</item>
<item>
<title>Nathan on "Category template"</title>
<link>http://themeshaper.com/forums/topic/category-template#post-9169</link>
<pubDate>Thu, 21 Jan 2010 21:35:20 +0000</pubDate>
<dc:creator>Nathan</dc:creator>
<guid isPermaLink="false">9169@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi everyone,&#60;br /&#62;
I'm new to the forum but have been combing over the guidance within for a couple months now and have built a couple sites using TS child themes. Thanks Ian and Chris and others!  My question is probably very simple to answer: How do I make a category template?  Say for cat_ID=3?  I would like to put div's in and configure with css.
&#60;/p&#62;</description>
</item>
<item>
<title>Manuel on "Make a category template display post AND comments"</title>
<link>http://themeshaper.com/forums/topic/make-a-category-template-display-post-and-comments#post-7276</link>
<pubDate>Wed, 21 Oct 2009 09:56:06 +0000</pubDate>
<dc:creator>Manuel</dc:creator>
<guid isPermaLink="false">7276@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Example link (with image upload for comments as well)&#60;br /&#62;
&#60;a href=&#34;http://ads-rantum.de/_neu/extras/gaestebuch/&#34; rel=&#34;nofollow&#34;&#62;http://ads-rantum.de/_neu/extras/gaestebuch/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Manuel on "Make a category template display post AND comments"</title>
<link>http://themeshaper.com/forums/topic/make-a-category-template-display-post-and-comments#post-7275</link>
<pubDate>Wed, 21 Oct 2009 09:38:51 +0000</pubDate>
<dc:creator>Manuel</dc:creator>
<guid isPermaLink="false">7275@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Wheee, I fixed something myself. :)&#60;/p&#62;
&#60;p&#62;Apparently there was only one tiny thing missing. Inside of the WordPress core file “comment-template.php” is one line that says &#60;code&#62;if ( ! (is_single() &#124;&#124; is_page() &#124;&#124; $withcomments) )&#60;/code&#62; (which disables the display of comments if one is not viewing a single post or a page).&#60;/p&#62;
&#60;p&#62;So all I had to do was to add an &#60;em&#62;override&#60;/em&#62; of that variable to my category template: &#60;code&#62;&#38;lt;?php $withcomments = 1 ?&#38;gt;&#60;/code&#62; — and comments got pulled in.&#60;/p&#62;
&#60;p&#62;Here is my working category template &#60;em&#62;with&#60;/em&#62; comments:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Category with Comments
*/
?&#38;gt;
&#38;lt;?php
global $options;
foreach ($options as $value) {
    if (get_option( $value[&#38;#39;id&#38;#39;] ) === FALSE) { $$value[&#38;#39;id&#38;#39;] = $value[&#38;#39;std&#38;#39;]; }
    else { $$value[&#38;#39;id&#38;#39;] = get_option( $value[&#38;#39;id&#38;#39;] ); }
    }
?&#38;gt;
&#38;lt;?php get_header() ?&#38;gt;

&#38;lt;?php $withcomments = 1 //This one displays comments even if we are in category view ?&#38;gt;

	&#38;lt;div id=&#38;quot;container&#38;quot;&#38;gt;
		&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;

&#38;lt;?php the_post(); ?&#38;gt;
			&#38;lt;?php thematic_navigation_above();?&#38;gt;

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

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

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

		&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;

&#38;lt;?php thematic_sidebar() ?&#38;gt;
&#38;lt;?php get_footer() ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Man, kinda cool to figure something out on your own. :D
&#60;/p&#62;</description>
</item>
<item>
<title>Manuel on "Make a category template display post AND comments"</title>
<link>http://themeshaper.com/forums/topic/make-a-category-template-display-post-and-comments#post-7273</link>
<pubDate>Wed, 21 Oct 2009 08:53:42 +0000</pubDate>
<dc:creator>Manuel</dc:creator>
<guid isPermaLink="false">7273@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I’ve created a new category template (named category-15.php) and put it in my childtheme directory. I thought the easiest way to make it act like single.php (so it displays the post and the comments) is to just copy the code from single.php, but that is not working, in fact, it changes nothing.&#60;/p&#62;
&#60;p&#62;I need this because in this sites navigation pages are considered as “core information links” and the categories just as extras which contain no important stuff about the business.&#60;/p&#62;
&#60;p&#62;This one specific category I am talking about here contains only one post, called “The Guestbook”. After clicking the category link in the nav — which is named just like the post — one should see the post with all the comments as well.&#60;/p&#62;
&#60;p&#62;This is the code content of category-15.php&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Template Name: Guestbook Template
*/
?&#38;gt;
&#38;lt;?php
global $options;
foreach ($options as $value) {
    if (get_option( $value[&#38;#39;id&#38;#39;] ) === FALSE) { $$value[&#38;#39;id&#38;#39;] = $value[&#38;#39;std&#38;#39;]; }
    else { $$value[&#38;#39;id&#38;#39;] = get_option( $value[&#38;#39;id&#38;#39;] ); }
    }
?&#38;gt;
&#38;lt;?php get_header() ?&#38;gt;

	&#38;lt;div id=&#38;quot;container&#38;quot;&#38;gt;
		&#38;lt;div id=&#38;quot;content&#38;quot;&#38;gt;

&#38;lt;?php the_post(); ?&#38;gt;
			&#38;lt;?php thematic_navigation_above();?&#38;gt;

&#38;lt;?php get_sidebar(&#38;#39;single-top&#38;#39;) ?&#38;gt;

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

&#38;lt;?php get_sidebar(&#38;#39;single-insert&#38;#39;) ?&#38;gt;

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

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

&#38;lt;?php get_sidebar(&#38;#39;single-bottom&#38;#39;) ?&#38;gt;

		&#38;lt;/div&#38;gt;&#38;lt;!-- #content --&#38;gt;
	&#38;lt;/div&#38;gt;&#38;lt;!-- #container --&#38;gt;

&#38;lt;?php thematic_sidebar() ?&#38;gt;
&#38;lt;?php get_footer() ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
