<?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: How to show just 1 post per page on a particular category post page?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 17:05:28 +0000</pubDate>

<item>
<title>thexander on "How to show just 1 post per page on a particular category post page?"</title>
<link>http://themeshaper.com/forums/topic/how-to-show-just-1-post-per-page-on-a-particular-category-post-page#post-11144</link>
<pubDate>Thu, 01 Apr 2010 20:52:23 +0000</pubDate>
<dc:creator>thexander</dc:creator>
<guid isPermaLink="false">11144@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello, I'm trying to set a category to display 100-500 posts. Apparently the function above ceases to work if you set the number above 10.&#60;/p&#62;
&#60;p&#62;Can someone please help?
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "How to show just 1 post per page on a particular category post page?"</title>
<link>http://themeshaper.com/forums/topic/how-to-show-just-1-post-per-page-on-a-particular-category-post-page#post-7605</link>
<pubDate>Mon, 02 Nov 2009 02:17:54 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7605@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi hally-&#60;/p&#62;
&#60;p&#62;Do you mean to say &#34;just show 1 post per page on a particular category archive page&#34;? If so this should do it for you.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_cat_archive_post_limit() {

  if (is_category(&#38;#39;6&#38;#39;)) {
    	$paged = (get_query_var(&#38;#39;paged&#38;#39;)) ? get_query_var(&#38;#39;paged&#38;#39;) : 1;
     	query_posts(&#38;#39;cat=6 &#38;#38;showposts=1 &#38;#38;paged=&#38;#39; . $paged );
    	$wp_query-&#38;gt;is_archive = true; $wp_query-&#38;gt;is_home = false;
  }
}
add_action(&#38;#39;thematic_above_categoryloop&#38;#39;,&#38;#39;my_cat_archive_post_limit&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you're trying to do this on the home page of the site you could try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_custom_query() {

  if (is_home()) {
    	$paged = (get_query_var(&#38;#39;paged&#38;#39;)) ? get_query_var(&#38;#39;paged&#38;#39;) : 1;
     	query_posts(&#38;#39;cat=6 &#38;#38;showposts=1 &#38;#38;paged=&#38;#39; . $paged );
    	$wp_query-&#38;gt;is_archive = false; $wp_query-&#38;gt;is_home = true;
  }
}
add_action(&#38;#39;thematic_above_indexloop&#38;#39;,&#38;#39;my_custom_query&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>hally on "How to show just 1 post per page on a particular category post page?"</title>
<link>http://themeshaper.com/forums/topic/how-to-show-just-1-post-per-page-on-a-particular-category-post-page#post-7556</link>
<pubDate>Sat, 31 Oct 2009 13:00:07 +0000</pubDate>
<dc:creator>hally</dc:creator>
<guid isPermaLink="false">7556@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Currently I am using this code to show just the news category which is on the frontpage:&#60;/p&#62;
&#60;p&#62;query_posts('cat=6'); while ( have_posts() ) : the_post()    &#60;/p&#62;
&#60;p&#62;But I am wondering if they is some additional code I could use to limit the number of posts for that category
&#60;/p&#62;</description>
</item>
<item>
<title>hally on "How to show just 1 post per page on a particular category post page?"</title>
<link>http://themeshaper.com/forums/topic/how-to-show-just-1-post-per-page-on-a-particular-category-post-page#post-7554</link>
<pubDate>Sat, 31 Oct 2009 12:43:25 +0000</pubDate>
<dc:creator>hally</dc:creator>
<guid isPermaLink="false">7554@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Is there a way to show just 1 post per page on a particular category post page?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
