<?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>Blog Excerpt Formatting &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/blog-excerpt-formatting/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 11:41:16 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-101002</guid>
					<title><![CDATA[Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-101002</link>
					<pubDate>Mon, 08 Sep 2014 21:32:59 +0000</pubDate>
					<dc:creator>Kevin L</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>Currently, the blog index shows the excerpts of the posts with the formatting tags stripped. Is there an easy way to keep the formatting instead?</p>
<p>Cheers,<br />
Kevin.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-101032</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-101032</link>
					<pubDate>Mon, 08 Sep 2014 22:22:09 +0000</pubDate>
					<dc:creator>Darshana</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Kevin, </p>
<p>You can do that by copying the following code to your <strong>functions.php</strong> file which is in the root of your theme folder. Before doing so, we&#8217;re highly recommending for you to create a child theme setup for your website so that your custom code will be remain separately. </p>
<p>Please check our child theme setup guide at (<a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" rel="nofollow">http://theme.co/x/member/kb/how-to-setup-child-themes/</a>). </p>
<p>Once you activate the <strong>Child Theme</strong>, open the <strong>functions.php</strong> and add the following code. </p>
<pre><code>
function custom_wp_trim_excerpt($text) {
	$raw_excerpt = $text;
	if ( &#039;&#039; == $text ) {
	    //Retrieve the post content. 
	    $text = get_the_content(&#039;&#039;);
	 	$text = strip_shortcodes( $text );
	    $text = apply_filters(&#039;the_content&#039;, $text);
	    $text = str_replace(&#039;]]&gt;&#039;, &#039;]]&gt;&#039;, $text);

	    // the code below sets the excerpt length to 55 words. You can adjust this number for your own blog.
	    $excerpt_length = apply_filters(&#039;excerpt_length&#039;, 55);

	    // the code below sets what appears at the end of the excerpt, in this case ...
	    $excerpt_more = apply_filters(&#039;excerpt_more&#039;, &#039; &#039; . &#039;...&#039;);

	    $words = preg_split(&quot;/[\n\r\t ]+/&quot;, $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
	    if ( count($words) &gt; $excerpt_length ) {
	        array_pop($words);
	        $text = implode(&#039; &#039;, $words);
	        $text = force_balance_tags( $text );
	        $text = $text . $excerpt_more;
	    } else {
	        $text = implode(&#039; &#039;, $words);
	    }

	}
	return apply_filters(&#039;wp_trim_excerpt&#039;, $text, $raw_excerpt);
}
remove_filter(&#039;get_the_excerpt&#039;, &#039;wp_trim_excerpt&#039;);
add_filter(&#039;get_the_excerpt&#039;, &#039;custom_wp_trim_excerpt&#039;);
</code></pre>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-102490</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-102490</link>
					<pubDate>Thu, 11 Sep 2014 03:24:03 +0000</pubDate>
					<dc:creator>Kevin L</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks! You guys are awesome!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-102530</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-102530</link>
					<pubDate>Thu, 11 Sep 2014 05:29:47 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome Kevin. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-114155</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-114155</link>
					<pubDate>Sun, 28 Sep 2014 14:22:30 +0000</pubDate>
					<dc:creator>Shannon M</dc:creator>

					<description>
						<![CDATA[
						<p>I tried this, but the excerpt length doesn&#8217;t appear to be working. I&#8217;m in the Integrity stack. Any ideas? Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-114165</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-114165</link>
					<pubDate>Sun, 28 Sep 2014 14:39:21 +0000</pubDate>
					<dc:creator>Shannon M</dc:creator>

					<description>
						<![CDATA[
						<p>DISREGARD. I&#8217;m just a ditz. I had the &#8220;full&#8221; version selected in my WP reading settings. Switched to excerpt and it&#8217;s perfect. Sorry!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-114270</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-114270</link>
					<pubDate>Sun, 28 Sep 2014 20:46:34 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Okay cool! No problem 🙂 Cheers.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-812948</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-812948</link>
					<pubDate>Fri, 26 Feb 2016 04:24:27 +0000</pubDate>
					<dc:creator>edwinfu</dc:creator>

					<description>
						<![CDATA[
						<p>I used the code in my child theme which is fantastic. However, there is a line break before the &#8216;&#8230; Read More&#8217; that I want to remove. Is there some way to do so?</p>
<p>Thank you</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-813117</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-813117</link>
					<pubDate>Fri, 26 Feb 2016 06:36:01 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello Edwin,</p>
<p>Thanks for updating this thread! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.</p>
<p>To do this, you can make a post with the following info:<br />
– Link to your site <br />
– WordPress Admin username / password</p>
<p><strong>Don’t forget to select Set as private reply</strong>. This ensures your information is only visible to our staff.</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-814039</guid>
					<title><![CDATA[Reply To: Blog Excerpt Formatting]]></title>
					<link>https://theme.co/archive/forums/topic/blog-excerpt-formatting/#post-814039</link>
					<pubDate>Fri, 26 Feb 2016 22:31:39 +0000</pubDate>
					<dc:creator>edwinfu</dc:creator>

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

					
					
				</item>

					
		
	</channel>
	</rss>

