<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Recent Posts showing wrong number of posts. &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/feed/</link>
		<description></description>
		<lastBuildDate>Mon, 20 Oct 2025 15:07:16 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-89811</guid>
					<title><![CDATA[Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-89811</link>
					<pubDate>Fri, 22 Aug 2014 02:39:12 +0000</pubDate>
					<dc:creator>jmacreations</dc:creator>

					<description>
						<![CDATA[
						<p>I have a live website that was working fine for a week &#8211; nothing has changed and now the recent post section is showing more posts than told to in the back end. I have removed all plugins and the issue still occurs.</p>
<p>I have set the VC Recent Posts to show 3 recent posts and be in a 3/4 + 1/4 (its in the 3/4 section) but its showing 4 articles in a width that fits the 3/4 (must be 30.6666%)</p>
<p>When i change to text view this is what the row is:<br />
<code>[vc_row][vc_column width=&quot;3/4&quot;][recent_posts type=&quot;post&quot; count=&quot;3&quot; orientation=&quot;horizontal&quot;][/vc_column][vc_column width=&quot;1/4&quot;][button shape=&quot;rounded&quot; size=&quot;regular&quot; float=&quot;none&quot; block=&quot;true&quot; info=&quot;none&quot; info_place=&quot;top&quot; info_trigger=&quot;hover&quot; href=&quot;http://919freshfm.com.au/shop/&quot;]DONATE TODAY![/button][button shape=&quot;rounded&quot; size=&quot;regular&quot; float=&quot;none&quot; block=&quot;true&quot; info=&quot;none&quot; info_place=&quot;top&quot; info_trigger=&quot;hover&quot; href=&quot;http://919freshfm.com.au/contact-the-dj&quot;]CONTACT THE DJ[/button][button shape=&quot;rounded&quot; size=&quot;regular&quot; float=&quot;none&quot; block=&quot;true&quot; info=&quot;none&quot; info_place=&quot;top&quot; info_trigger=&quot;hover&quot; href=&quot;#text-8&quot;]SHARE YOUR STORY[/button][/vc_column][/vc_row]</code></p>
<p>The site is <a href="http://919freshfm.com.au/" title="http://919freshfm.com.au/" target="_blank" rel="nofollow">919freshfm.com.au</a> and its the recent posts that are directly below the slider &#8211; you cant miss them 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-89868</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-89868</link>
					<pubDate>Fri, 22 Aug 2014 05:05:55 +0000</pubDate>
					<dc:creator>Paula S</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Thanks for the information. We might need to look into this further, so would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:</p>
<p>&#8211; Link to your site<br />
&#8211; WordPress Admin username / password<br />
&#8211; FTP credentials</p>
<p><strong>Don&#8217;t forget to select Set as private reply. This ensures your information is only visible to our staff. </strong> Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-106189</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-106189</link>
					<pubDate>Wed, 17 Sep 2014 02:48:10 +0000</pubDate>
					<dc:creator>jmacreations</dc:creator>

					<description>
						<![CDATA[
						<p>Sorry for such a late reply. I found the issue was that when i have a sticky post that is no longer in the top 3 posts it shows the sticky post AND the top 3 &#8211; thus giving 4 posts instead of 3.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-106258</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-106258</link>
					<pubDate>Wed, 17 Sep 2014 07:31:57 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>Please add the code below in your functions.php.</p>
<pre><code>function x_shortcode_recent_posts_no_sticky( $atts ) {
  extract( shortcode_atts( array(
    &#039;id&#039;          =&gt; &#039;&#039;,
    &#039;class&#039;       =&gt; &#039;&#039;,
    &#039;style&#039;       =&gt; &#039;&#039;,
    &#039;type&#039;        =&gt; &#039;&#039;,
    &#039;count&#039;       =&gt; &#039;&#039;,
    &#039;category&#039;    =&gt; &#039;&#039;,
    &#039;offset&#039;      =&gt; &#039;&#039;,
    &#039;orientation&#039; =&gt; &#039;&#039;,
    &#039;no_image&#039;    =&gt; &#039;&#039;,
    &#039;fade&#039;        =&gt; &#039;&#039;
  ), $atts ) );

  $id            = ( $id          != &#039;&#039;          ) ? &#039;id=&quot;&#039; . esc_attr( $id ) . &#039;&quot;&#039; : &#039;&#039;;
  $class         = ( $class       != &#039;&#039;          ) ? &#039;x-recent-posts cf &#039; . esc_attr( $class ) : &#039;x-recent-posts cf&#039;;
  $style         = ( $style       != &#039;&#039;          ) ? &#039;style=&quot;&#039; . $style . &#039;&quot;&#039; : &#039;&#039;;
  $type          = ( $type        == &#039;portfolio&#039; ) ? &#039;x-portfolio&#039; : &#039;post&#039;;
  $count         = ( $count       != &#039;&#039;          ) ? $count : 3;
  $category      = ( $category    != &#039;&#039;          ) ? $category : &#039;&#039;;
  $category_type = ( $type        == &#039;post&#039;      ) ? &#039;category_name&#039; : &#039;portfolio-category&#039;;
  $offset        = ( $offset      != &#039;&#039;          ) ? $offset : 0;
  $orientation   = ( $orientation != &#039;&#039;          ) ? &#039; &#039; . $orientation : &#039; horizontal&#039;;
  $no_image      = ( $no_image    == &#039;true&#039;      ) ? $no_image : &#039;&#039;;
  $fade          = ( $fade        == &#039;true&#039;      ) ? $fade : &#039;false&#039;;

  $output = &quot;&lt;div {$id} class=\&quot;{$class}{$orientation}\&quot; {$style} data-fade=\&quot;{$fade}\&quot;&gt;&quot;;

    $q = new WP_Query( array(
      &#039;orderby&#039;          =&gt; &#039;date&#039;,
      &#039;post_type&#039;        =&gt; &quot;{$type}&quot;,
      &#039;posts_per_page&#039;   =&gt; &quot;{$count}&quot;,
      &#039;offset&#039;           =&gt; &quot;{$offset}&quot;,
      &quot;{$category_type}&quot; =&gt; &quot;{$category}&quot;,
      &#039;post__not_in&#039; =&gt; get_option( &#039;sticky_posts&#039; )
    ) );

    if ( $q-&gt;have_posts() ) : while ( $q-&gt;have_posts() ) : $q-&gt;the_post();

      if ( $no_image == &#039;true&#039; ) {
        $image_output       = &#039;&#039;;
        $image_output_class = &#039;no-image&#039;;
      } else {
        $image_output       = &#039;&lt;div class=&quot;x-recent-posts-img&quot;&gt;&#039; . get_the_post_thumbnail( get_the_ID(), &#039;entry-&#039; . x_get_option( &#039;x_stack&#039;, &#039;integrity&#039; ) . &#039;-cropped&#039;, NULL ) . &#039;&lt;/div&gt;&#039;;
        $image_output_class = &#039;with-image&#039;;
      }

      $output .= &#039;&lt;a class=&quot;x-recent-post&#039; . $count . &#039; &#039; . $image_output_class . &#039;&quot; href=&quot;&#039; . get_permalink( get_the_ID() ) . &#039;&quot; title=&quot;&#039; . esc_attr( sprintf( __( &#039;Permalink to: &quot;%s&quot;&#039;, &#039;__x__&#039; ), the_title_attribute( &#039;echo=0&#039; ) ) ) . &#039;&quot;&gt;&#039;
                 . &#039;&lt;article id=&quot;post-&#039; . get_the_ID() . &#039;&quot; class=&quot;&#039; . implode( &#039; &#039;, get_post_class() ) . &#039;&quot;&gt;&#039;
                   . &#039;&lt;div class=&quot;entry-wrap&quot;&gt;&#039;
                     . $image_output
                     . &#039;&lt;div class=&quot;x-recent-posts-content&quot;&gt;&#039;
                       . &#039;&lt;h3 class=&quot;h-recent-posts&quot;&gt;&#039; . get_the_title() . &#039;&lt;/h3&gt;&#039;
                       . &#039;&lt;span class=&quot;x-recent-posts-date&quot;&gt;&#039; . get_the_date() . &#039;&lt;/span&gt;&#039;
                     . &#039;&lt;/div&gt;&#039;
                   . &#039;&lt;/div&gt;&#039;
                 . &#039;&lt;/article&gt;&#039;
               . &#039;&lt;/a&gt;&#039;;

    endwhile; endif; wp_reset_postdata();
  
  $output .= &#039;&lt;/div&gt;&#039;;

  return $output;
}

add_shortcode( &#039;recent_posts_no_sticky&#039;, &#039;x_shortcode_recent_posts_no_sticky&#039; );</code></pre>
<p>Then, use the shortcode</p>
<p><code>[recent_posts_no_sticky type=&quot;post&quot; category=&quot;&quot; count=&quot;2&quot; orientation=&quot;horizontal&quot;]</code></p>
<p>It is the same as the <code>[recent_posts]</code> shortcode except that it doesn&#8217;t allow sticky posts to be displayed.</p>
<p>We&#8217;ll take note of this issue and might include this bit in a future release.</p>
<p>Hope that helps. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341573</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341573</link>
					<pubDate>Mon, 27 Jul 2015 08:55:22 +0000</pubDate>
					<dc:creator>wpStan.com</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341591</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341591</link>
					<pubDate>Mon, 27 Jul 2015 09:10:08 +0000</pubDate>
					<dc:creator>wpStan.com</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;ve found that if I jump into the code and add post count= &#8220;1&#8221; it will show properly.</p>
<p>BUT I don&#8217;t want to have to do this everytime I make a change. </p>
<p><strong>I have also uninstalled and re-installed Visual Composer</strong> the issue remains</p>
<p><strong>I also have the newest version of X Theme 4.0.5</strong></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341593</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341593</link>
					<pubDate>Mon, 27 Jul 2015 09:11:11 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>It is showing three because you have three recent_posts shortcode with count=1</p>
<p><a href="http://screencast.com/t/kDcdOmpp8" rel="nofollow">http://screencast.com/t/kDcdOmpp8</a></p>
<p>I also created a test page to show that recent posts count is working</p>
<p><a href="http://naz-sect.com/xtest/" rel="nofollow">http://naz-sect.com/xtest/</a></p>
<p>Kindly delete it after you check.</p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341608</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341608</link>
					<pubDate>Mon, 27 Jul 2015 09:36:44 +0000</pubDate>
					<dc:creator>wpStan.com</dc:creator>

					<description>
						<![CDATA[
						<p>I apologize it appears you were logged in at the same time I was making adjustments.</p>
<p>The issue is only on the home page, other pages work fine.</p>
<p>I have my recent posts count set to &#8220;1&#8221;, but it is showing 3 posts on my home page, please check again.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341637</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-341637</link>
					<pubDate>Mon, 27 Jul 2015 10:08:01 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>This seems to be a bug, when I checked in classic mode &gt; text editor there is no count attribute in the recent posts shortcode.</p>
<p>I will forward this to our web development team as a bug, for the mean time you can add the count manually to your recent posts shortcode in classic mode.</p>
<p><a href="http://screencast.com/t/TxkTOyibv" rel="nofollow">http://screencast.com/t/TxkTOyibv</a></p>
<pre><code>
[recent_posts offset=&quot;1&quot; count=&quot;1&quot;]
</code></pre>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-342454</guid>
					<title><![CDATA[Reply To: Recent Posts showing wrong number of posts.]]></title>
					<link>https://theme.co/archive/forums/topic/recent-posts-showing-wrong-number-of-posts/#post-342454</link>
					<pubDate>Tue, 28 Jul 2015 04:33:53 +0000</pubDate>
					<dc:creator>wpStan.com</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks will do&#8230;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

