<?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>Adding excerpt to recent posts &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 08:05:27 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96050</guid>
					<title><![CDATA[Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96050</link>
					<pubDate>Mon, 01 Sep 2014 08:43:09 +0000</pubDate>
					<dc:creator>Innovata</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>On the homepage of nieuw.teunvandekeuken.nl I&#8217;m using the shortcode recent posts without the featured image. Now only the titles and dates of the posts are published. But I also want to ad a short summary / excerpt under the titles with a read more link. Is this possible?</p>
<p>Thanks in advance.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96052</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96052</link>
					<pubDate>Mon, 01 Sep 2014 08:51:05 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>Please see <a href="http://theme.co/x/member/forums/topic/add-excerpt-to-recent-posts-shortcode/#post-66964" rel="nofollow">http://theme.co/x/member/forums/topic/add-excerpt-to-recent-posts-shortcode/#post-66964</a></p>
<p>Hope that helps. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96065</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96065</link>
					<pubDate>Mon, 01 Sep 2014 09:18:16 +0000</pubDate>
					<dc:creator>Innovata</dc:creator>

					<description>
						<![CDATA[
						<p>I followed the instruction in the link, but nothing happens. Still no excerpts under the post titles.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96077</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96077</link>
					<pubDate>Mon, 01 Sep 2014 09:42:44 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Please note that switching from classic to visual composer may remove the enable_excerpt attribute since it is not a default option.</p>
<p>Would you mind trying the code below.</p>
<pre><code>
[recent_posts enable_excerpt=&quot;true&quot; type=&quot;post&quot; orientation=&quot;horizontal&quot; no_image=&quot;true&quot; category=&quot;Columns&quot;]
</code></pre>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96080</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96080</link>
					<pubDate>Mon, 01 Sep 2014 09:59:48 +0000</pubDate>
					<dc:creator>Innovata</dc:creator>

					<description>
						<![CDATA[
						<p>Unfortenately. Not working. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96082</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96082</link>
					<pubDate>Mon, 01 Sep 2014 10:08:48 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there ,</p>
<p>You might want to try this plugin to add excerpt:<br />
<a href="http://wordpress.org/plugins/advanced-excerpt/" rel="nofollow">http://wordpress.org/plugins/advanced-excerpt/</a>.</p>
<p>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96108</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96108</link>
					<pubDate>Mon, 01 Sep 2014 11:31:17 +0000</pubDate>
					<dc:creator>Innovata</dc:creator>

					<description>
						<![CDATA[
						<p>I installed the plugin, but only has effect on the blog index page. The recent posts on the homepage still don&#8217;t have an excerpt.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96135</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96135</link>
					<pubDate>Mon, 01 Sep 2014 12:23:58 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Innovata!</p>
<p>Thank you for writing in!</p>
<p>Instead of using about codes, try adding the following code in your child theme&#8217;s <strong>functions.php</strong> file and see if it enables excerpt in your [recent_posts] shortcode:</p>
<pre><code>// Recent Posts - Adding EXCERPT to recent_posts shortcode
// =============================================================================

function x_shortcode_recent_posts2( $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;
    ) );

    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;
                       . do_shortcode(&#039;[gap size=&quot;10px&quot;]&#039;) . &#039;&lt;p&gt;&#039; . get_the_excerpt() . &#039;&lt;/p&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_filter(&#039;init&#039;, function() {
	remove_shortcode( &#039;recent_posts&#039; );

	add_shortcode( &#039;recent_posts&#039;, &#039;x_shortcode_recent_posts2&#039; );
});
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96154</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96154</link>
					<pubDate>Mon, 01 Sep 2014 12:47:07 +0000</pubDate>
					<dc:creator>Innovata</dc:creator>

					<description>
						<![CDATA[
						<p>With or without using the plugin &#8216;Advanced excerpt&#8217;?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96158</guid>
					<title><![CDATA[Reply To: Adding excerpt to recent posts]]></title>
					<link>https://theme.co/archive/forums/topic/adding-excerpt-to-recent-posts/#post-96158</link>
					<pubDate>Mon, 01 Sep 2014 12:52:51 +0000</pubDate>
					<dc:creator>Innovata</dc:creator>

					<description>
						<![CDATA[
						<p>I deactivated the plugin and added the code to the child&#8217;s function.php. No I can see the excerpts on the homepage of nieuw.teunvandekeuken.nl, but the styling is not ok. Could you have a look and explain what&#8217;s wrong?</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

