<?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: showposts</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 16:30:50 +0000</pubDate>

<item>
<title>acts7 on "query_posts / showposts =&#62; 5 (who have featured image - else not affect 5)"</title>
<link>http://themeshaper.com/forums/topic/query_posts-showposts-gt-5-who-have-featured-image-else-not-affect-5#post-16694</link>
<pubDate>Tue, 02 Nov 2010 18:06:24 +0000</pubDate>
<dc:creator>acts7</dc:creator>
<guid isPermaLink="false">16694@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;How can you ensure that you are delivering 5 posts that definately have thumbnail?&#60;br /&#62;
ie&#60;br /&#62;
post 1 (no thumb - so start showposts count over)&#60;br /&#62;
post 2 (has thumb - now only need 4 more posts WITH thumbnail)&#60;br /&#62;
post 3 (yes thumb - count is now 2 posts)&#60;br /&#62;
post 4 (no thumb - count remains at 2 posts)&#60;br /&#62;
post 5 (yes thumb - count now at 3)&#60;br /&#62;
post 6 (yes thumb - count now at 4)&#60;br /&#62;
post 7 (no thumb - count remains at 4)&#60;br /&#62;
post 8 (yes thumb - WE HAVE OUR 5 POSTS! so continue)
&#60;/p&#62;</description>
</item>
<item>
<title>acts7 on "query_posts / showposts =&#62; 5 (who have featured image - else not affect 5)"</title>
<link>http://themeshaper.com/forums/topic/query_posts-showposts-gt-5-who-have-featured-image-else-not-affect-5#post-16693</link>
<pubDate>Tue, 02 Nov 2010 17:57:35 +0000</pubDate>
<dc:creator>acts7</dc:creator>
<guid isPermaLink="false">16693@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've looked everywhere for a way to do this.&#60;br /&#62;
I can query_posts ($args) no problem.&#60;/p&#62;
&#60;p&#62;So using&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$args=array(
           //   HOW MANY to display
           //&#38;#39;showposts&#38;#39;=&#38;gt;5,
           );
    query_posts($args);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This will simply return 5 posts.&#60;/p&#62;
&#60;p&#62;Then I add an if statement (has_post_thumbnail()).&#60;br /&#62;
However, all this does is use the five latest posts (so if only 2 have post_thumbnail, then only 2 posts show).&#60;/p&#62;
&#60;p&#62;How can I make it not count against the 5 unless it has post_thumbnail
&#60;/p&#62;</description>
</item>
<item>
<title>sober on "Different number of posts at frontpage and categories, search etc. w/o hacking"</title>
<link>http://themeshaper.com/forums/topic/different-number-of-posts-at-frontpage-and-categories-search-etc-wo-hacking#post-13201</link>
<pubDate>Fri, 18 Jun 2010 05:54:29 +0000</pubDate>
<dc:creator>sober</dc:creator>
<guid isPermaLink="false">13201@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I am also interested in the code for this. please share if you have found it
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Different number of posts at frontpage and categories, search etc. w/o hacking"</title>
<link>http://themeshaper.com/forums/topic/different-number-of-posts-at-frontpage-and-categories-search-etc-wo-hacking#post-13173</link>
<pubDate>Thu, 17 Jun 2010 12:21:35 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">13173@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Stephan,&#60;/p&#62;
&#60;p&#62;you have two options:&#60;/p&#62;
&#60;p&#62;1.) Add one function, covering all changes, or several functions to thematic_above_indexloop, thematic_above_categoryloop, and so on (the templates are using different action hooks)&#60;/p&#62;
&#60;p&#62;2) Add one function, covering all changes, to thematic_navigation_above.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>stengl on "Different number of posts at frontpage and categories, search etc. w/o hacking"</title>
<link>http://themeshaper.com/forums/topic/different-number-of-posts-at-frontpage-and-categories-search-etc-wo-hacking#post-13172</link>
<pubDate>Thu, 17 Jun 2010 10:34:02 +0000</pubDate>
<dc:creator>stengl</dc:creator>
<guid isPermaLink="false">13172@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/cbnet-different-posts-per-page/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/cbnet-different-posts-per-page/&#60;/a&#62; does the trick, even though I would prefer to have it hard-coded via hook/filter.
&#60;/p&#62;</description>
</item>
<item>
<title>stengl on "Different number of posts at frontpage and categories, search etc. w/o hacking"</title>
<link>http://themeshaper.com/forums/topic/different-number-of-posts-at-frontpage-and-categories-search-etc-wo-hacking#post-13171</link>
<pubDate>Thu, 17 Jun 2010 10:07:11 +0000</pubDate>
<dc:creator>stengl</dc:creator>
<guid isPermaLink="false">13171@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;I am trying to limit my frontpage to 1-full-post. At the same time I want all archives and searches to display more than one result per page. Changing the &#34;Blog pages show at most&#34; Value under Admin -&#38;gt; Settings -&#38;gt; Readings affects not only the Frontpage, but also archives.&#60;/p&#62;
&#60;p&#62;How can I manually adjust one of the values without too much hacking? I am using the Autofocus+ Child Theme &#60;a href=&#34;http://fthrwght.com/autofocus/plusdemo/&#34; rel=&#34;nofollow&#34;&#62;http://fthrwght.com/autofocus/plusdemo/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;My initial thought was to use a conditional function like this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
function my_custom_query() {&#60;/p&#62;
&#60;p&#62;  if (is_archive()) {&#60;br /&#62;
      global $query_string;&#60;br /&#62;
      query_posts($query_string . &#34;&#38;#38;showposts=5&#34;);&#60;br /&#62;
  }&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_above_indexloop','my_custom_query');
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;… which does not work.&#60;/p&#62;
&#60;p&#62;Any ideas?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
