<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Want To Create Template - Display Posts like homepage but from Category</title>
		<link>http://www.kriesi.at/support/topic/want-to-create-template-display-posts-like-homepage-but-from-category</link>
		<description>Support Forum - Topic: Want To Create Template - Display Posts like homepage but from Category</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 08:40:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/want-to-create-template-display-posts-like-homepage-but-from-category" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Want To Create Template - Display Posts like homepage but from Category"</title>
			<link>http://www.kriesi.at/support/topic/want-to-create-template-display-posts-like-homepage-but-from-category#post-56302</link>
			<pubDate>Wed, 16 May 2012 17:12:37 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">56302@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;WP uses the standard query if you don't add aditional parameters. It will use the category which is requested by the user. It doesn't make much sense to add custom categories the archive template (eg by &#34;hardcoding&#34; the categories).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kurtfeigel on "Want To Create Template - Display Posts like homepage but from Category"</title>
			<link>http://www.kriesi.at/support/topic/want-to-create-template-display-posts-like-homepage-but-from-category#post-55863</link>
			<pubDate>Sat, 12 May 2012 17:27:21 +0000</pubDate>
			<dc:creator>kurtfeigel</dc:creator>
			<guid isPermaLink="false">55863@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;how do I select what category I want to display?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Want To Create Template - Display Posts like homepage but from Category"</title>
			<link>http://www.kriesi.at/support/topic/want-to-create-template-display-posts-like-homepage-but-from-category#post-55681</link>
			<pubDate>Fri, 11 May 2012 07:14:29 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">55681@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Basically you just need to duplicate index.php and rename the copy archive.php. Then replace&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$additional_loop = new WP_Query(&#38;quot;cat=&#38;quot;.$negative_cats.&#38;quot;&#38;amp;paged=$paged&#38;quot;);

		if ($additional_loop-&#38;gt;have_posts()) :
		while ($additional_loop-&#38;gt;have_posts()) : $additional_loop-&#38;gt;the_post();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (have_posts()) :
		while (have_posts()) : the_post();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Some other adjustments are required - eg you can remove the slider, etc.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kurtfeigel on "Want To Create Template - Display Posts like homepage but from Category"</title>
			<link>http://www.kriesi.at/support/topic/want-to-create-template-display-posts-like-homepage-but-from-category#post-55199</link>
			<pubDate>Tue, 08 May 2012 15:42:11 +0000</pubDate>
			<dc:creator>kurtfeigel</dc:creator>
			<guid isPermaLink="false">55199@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I want the pages to display similar to the home page. I've created templates for the pages &#34;Relationship,Teens,Etc&#34; and need to know how to only display 1 category in the code. &#60;/p&#62;
&#60;p&#62;Here is the code I've grabbed from the home page. It works great as it inserts ALL blog posts. I just want ONE category though. &#60;/p&#62;
&#60;p&#62;// ############################# FULL SIZED POSTS #############################&#60;br /&#62;
		if ($fullsized &#38;gt; 0) :&#60;/p&#62;
&#60;p&#62;		$preview_image = kriesi_post_thumb($post-&#38;gt;ID, array('size'=&#38;gt; array('M'),&#60;br /&#62;
													'display_link' =&#38;gt; '_prev_image_link',&#60;br /&#62;
													'linkurl' =&#38;gt; array ('L','_preview_big'),&#60;br /&#62;
													'wh' =&#38;gt; $k_option['custom']['imgSize']['M']&#60;br /&#62;
													));&#60;/p&#62;
&#60;p&#62;		?&#38;gt;&#60;br /&#62;
		&#38;lt;div class=&#34;entry &#38;lt;?php if(!$preview_image) echo 'entry-no-pic';?&#38;gt;&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;?php&#60;br /&#62;
			if($preview_image)&#60;br /&#62;
			{&#60;br /&#62;
			echo '&#38;lt;div class=&#34;entry-previewimage rounded preloading_background&#34;&#38;gt;';&#60;br /&#62;
			echo $preview_image;&#60;br /&#62;
			echo '&#38;lt;/div&#38;gt;';&#60;br /&#62;
			} &#60;/p&#62;
&#60;p&#62;			?&#38;gt;&#60;/p&#62;
&#60;p&#62;			&#38;lt;div class=&#34;entry-content&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;h1 class=&#34;entry-heading&#34;&#38;gt;&#60;br /&#62;
					&#60;a&#62;&#34; rel=&#34;bookmark&#34; title=&#34;&#38;lt;?php _e('Permanent Link:','newscast')?&#38;gt; &#38;lt;?php the_title(); ?&#38;gt;&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;?php the_title(); ?&#38;gt;&#60;br /&#62;
					&#60;/a&#62;&#60;br /&#62;
				&#38;lt;/h1&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry-head&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;span class=&#34;date ie6fix&#34;&#38;gt;&#38;lt;?php the_time('M d, Y') ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
					&#38;lt;span class=&#34;comments ie6fix&#34;&#38;gt;&#38;lt;?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
					&#38;lt;span class=&#34;author ie6fix&#34;&#38;gt;&#38;lt;?php _e('by','newscast');?&#38;gt; &#38;lt;?php the_author_posts_link(); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry-text&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;?php the_excerpt() ?&#38;gt;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry-bottom&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;span class=&#34;categories&#34;&#38;gt;&#38;lt;?php the_category(', '); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
					&#60;a&#62;&#34; class=&#34;more-link&#34;&#38;gt;&#38;lt;?php _e('Read more','newscast'); ?&#38;gt;&#60;/a&#62;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;br /&#62;
			&#38;lt;/div&#38;gt;&#38;lt;!--end entry_content--&#38;gt;&#60;br /&#62;
		&#38;lt;/div&#38;gt;&#38;lt;!--end entry --&#38;gt;&#60;br /&#62;
		&#38;lt;?php&#60;br /&#62;
		$fullsized--;&#60;/p&#62;
&#60;p&#62;		else:&#60;br /&#62;
		// ############################# SMALL SIZED POSTS #############################&#60;br /&#62;
			if($smallsized == 1): echo '&#38;lt;div class=&#34;doubleentry&#34;&#38;gt;'; endif;&#60;br /&#62;
			$smallsized ++;&#60;/p&#62;
&#60;p&#62;			$small_prev = kriesi_post_thumb($post-&#38;gt;ID, array('size'=&#38;gt; array('S'),&#60;br /&#62;
															'display_link' =&#38;gt; '_prev_image_link',&#60;br /&#62;
															'linkurl' =&#38;gt; array ('L','_preview_big'),&#60;br /&#62;
															'wh' =&#38;gt; $k_option['custom']['imgSize']['S'],&#60;br /&#62;
															'img_attr' =&#38;gt; array('class'=&#38;gt;'rounded alignleft'),&#60;br /&#62;
															'link_attr' =&#38;gt; array('class'=&#38;gt;'alignleft preloading_background')&#60;br /&#62;
															));&#60;/p&#62;
&#60;p&#62;			?&#38;gt;&#60;br /&#62;
			&#38;lt;div class=&#34;entry&#34;&#38;gt;&#60;br /&#62;
			&#38;lt;div class=&#34;entry-content&#34;&#38;gt;&#60;br /&#62;
				&#38;lt;h1 class=&#34;entry-heading&#34;&#38;gt;&#60;br /&#62;
					&#60;a&#62;&#34; rel=&#34;bookmark&#34; title=&#34;&#38;lt;?php _e('Permanent Link:','newscast')?&#38;gt; &#38;lt;?php the_title(); ?&#38;gt;&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;?php the_title(); ?&#38;gt;&#60;br /&#62;
					&#60;/a&#62;&#60;br /&#62;
				&#38;lt;/h1&#38;gt;				&#38;lt;div class=&#34;entry-head&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;span class=&#34;date ie6fix&#34;&#38;gt;&#38;lt;?php the_time('M d, Y') ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
					&#38;lt;span class=&#34;comments ie6fix&#34;&#38;gt;&#38;lt;?php comments_popup_link(__('No Comments','newscast'), __('1 Comment','newscast'), __('% Comments','newscast')); ?&#38;gt;&#38;lt;/span&#38;gt;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry-text&#34;&#38;gt;&#60;br /&#62;
					&#38;lt;?php&#60;br /&#62;
					if($small_prev) echo $small_prev;&#60;br /&#62;
					the_excerpt();&#60;br /&#62;
					?&#38;gt;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;				&#38;lt;div class=&#34;entry-bottom&#34;&#38;gt;&#60;br /&#62;
					&#60;a&#62;&#34; class=&#34;more-link&#34;&#38;gt;&#38;lt;?php _e('Read more','newscast'); ?&#38;gt;&#60;/a&#62;&#60;br /&#62;
				&#38;lt;/div&#38;gt;&#60;br /&#62;
			&#38;lt;/div&#38;gt;&#60;br /&#62;
		&#38;lt;/div&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;?php&#60;br /&#62;
		if($smallsized &#38;gt; 2): echo '&#38;lt;/div&#38;gt;'; $smallsized = 1; endif;&#60;/p&#62;
&#60;p&#62;		endif; endwhile;&#60;br /&#62;
		if($smallsized == 2):echo '&#38;lt;/div&#38;gt;'; endif;&#60;/p&#62;
&#60;p&#62;		kriesi_pagination($additional_loop-&#38;gt;max_num_pages);&#60;/p&#62;
&#60;p&#62;		else: &#60;/p&#62;
&#60;p&#62;			echo'&#38;lt;div class=&#34;entry&#34;&#38;gt;';&#60;br /&#62;
			echo'&#38;lt;h2&#38;gt;'.__('Nothing Found','newscast').'&#38;lt;/h2&#38;gt;';&#60;br /&#62;
			echo'&#38;lt;p&#38;gt;'.__('Sorry, no posts matched your criteria','newscast').'&#38;lt;/p&#38;gt;';&#60;br /&#62;
			echo'&#38;lt;/div&#38;gt;';&#60;/p&#62;
&#60;p&#62; 		endif;&#60;/p&#62;
&#60;p&#62; 		// end content: ?&#38;gt;&#60;br /&#62;
		&#38;lt;?php&#60;br /&#62;
		endwhile;&#60;br /&#62;
		else: &#60;/p&#62;
&#60;p&#62;			echo'&#38;lt;div class=&#34;entry&#34;&#38;gt;';&#60;br /&#62;
			echo'&#38;lt;h2&#38;gt;'.__('Nothing Found','newscast').'&#38;lt;/h2&#38;gt;';&#60;br /&#62;
			echo'&#38;lt;p&#38;gt;'.__('Sorry, no posts matched your criteria','newscast').'&#38;lt;/p&#38;gt;';&#60;br /&#62;
			echo'&#38;lt;/div&#38;gt;';&#60;/p&#62;
&#60;p&#62; 		endif;&#60;/p&#62;
&#60;p&#62; 		// end content: ?&#38;gt;&#38;lt;/div&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
