<?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: Creating a short excerpt</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 20 Jun 2013 13:31:40 +0000</pubDate>

<item>
<title>Deirdre on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-6585</link>
<pubDate>Sat, 19 Sep 2009 00:28:12 +0000</pubDate>
<dc:creator>Deirdre</dc:creator>
<guid isPermaLink="false">6585@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;You rock, thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>amygail on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-6575</link>
<pubDate>Fri, 18 Sep 2009 21:00:28 +0000</pubDate>
<dc:creator>amygail</dc:creator>
<guid isPermaLink="false">6575@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Deirdre&#60;br /&#62;
This should do it&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/forums/topic/read-more-link-in-excerpt-redux#post-6323&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/read-more-link-in-excerpt-redux#post-6323&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Deirdre on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-6548</link>
<pubDate>Thu, 17 Sep 2009 19:31:37 +0000</pubDate>
<dc:creator>Deirdre</dc:creator>
<guid isPermaLink="false">6548@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi everyone -&#60;/p&#62;
&#60;p&#62;I used the code by Justin Tadlock in function.php and was successful in displaying excerpts on the home page, which is exactly what I was looking for.&#60;/p&#62;
&#60;p&#62;The only thing I'm not sure how to do is create a link after the excerpt to the full post - like a &#34;Read More...&#34; link. &#60;/p&#62;
&#60;p&#62;Does anyone know how would I go about doing that?&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;/p&#62;
&#60;p&#62;~Deirdre
&#60;/p&#62;</description>
</item>
<item>
<title>McGirl2008 on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-4186</link>
<pubDate>Sun, 31 May 2009 19:32:39 +0000</pubDate>
<dc:creator>McGirl2008</dc:creator>
<guid isPermaLink="false">4186@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Chris, thank you!! I just found the answer you'd already written here:&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/adding-a-loop#post-3684&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/adding-a-loop#post-3684&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And I was able to get excerpts working on the home page using:&#60;/p&#62;
&#60;p&#62;function childtheme_content($content) {&#60;br /&#62;
	if (is_home() &#124;&#124; is_front_page()) {&#60;br /&#62;
		$content= 'excerpt';}&#60;br /&#62;
	return $content;&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_content', 'childtheme_content');&#60;/p&#62;
&#60;p&#62;Thanks again!&#60;br /&#62;
Michelle
&#60;/p&#62;</description>
</item>
<item>
<title>McGirl2008 on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-4156</link>
<pubDate>Fri, 29 May 2009 19:22:27 +0000</pubDate>
<dc:creator>McGirl2008</dc:creator>
<guid isPermaLink="false">4156@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Ditto, I'd love your advice. I can overwrite the default thematic_content function if necessary so it doesn't force full posts on the home page but it sounds like you're already working on it. &#60;/p&#62;
&#60;p&#62;What I'd really like to do is use the Advanced Excerpt plugin (as suggested by Ian here: &#60;a href=&#34;http://themeshaper.com/forums/topic/limiting-excerpt-length#post-985&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/limiting-excerpt-length#post-985&#60;/a&#62;) but it doesn't work on the site home page.&#60;/p&#62;
&#60;p&#62;Thanks!!&#60;br /&#62;
Michelle
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-3712</link>
<pubDate>Mon, 04 May 2009 16:29:28 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">3712@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;let me check this first with the Acamas theme .. I implemented a new filter which enables you to tell Thematic to use the full post, an excerpt or no post content.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>neverknock on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-3695</link>
<pubDate>Sun, 03 May 2009 20:15:22 +0000</pubDate>
<dc:creator>neverknock</dc:creator>
<guid isPermaLink="false">3695@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I also trying to add excerpts to the home page of my blog, which uses the the Acamas template.&#60;/p&#62;
&#60;p&#62;Based on previous comments, I have done the following:&#60;/p&#62;
&#60;p&#62;Added Justin Tadlock's code to function.php:&#60;/p&#62;
&#60;p&#62;// Create a excerpt on the home page&#60;br /&#62;
function my_excerpts($content = false) {&#60;/p&#62;
&#60;p&#62;// If is the home page, an archive, or search results&#60;br /&#62;
	if(is_front_page() &#124;&#124; is_archive() &#124;&#124; is_search()) :&#60;br /&#62;
		global $post;&#60;br /&#62;
		$content = $post-&#38;gt;post_excerpt;&#60;/p&#62;
&#60;p&#62;	// If an excerpt is set in the Optional Excerpt box&#60;br /&#62;
		if($content) :&#60;br /&#62;
			$content = apply_filters('the_excerpt', $content);&#60;/p&#62;
&#60;p&#62;	// If no excerpt is set&#60;br /&#62;
		else :&#60;br /&#62;
			$content = $post-&#38;gt;post_content;&#60;br /&#62;
			$excerpt_length = 55;&#60;br /&#62;
			$words = explode(' ', $content, $excerpt_length + 1);&#60;br /&#62;
			if(count($words) &#38;gt; $excerpt_length) :&#60;br /&#62;
				array_pop($words);&#60;br /&#62;
				array_push($words, '...');&#60;br /&#62;
				$content = implode(' ', $words);&#60;br /&#62;
			endif;&#60;br /&#62;
			$content = '&#38;lt;p&#38;gt;' . $content . '&#38;lt;/p&#38;gt;';&#60;/p&#62;
&#60;p&#62;		endif;&#60;br /&#62;
	endif;&#60;/p&#62;
&#60;p&#62;// Make sure to return the content&#60;br /&#62;
	return $content;&#60;/p&#62;
&#60;p&#62;In addition, in variant.css I have made following change to premit content to appear:&#60;/p&#62;
&#60;p&#62;/* .home .entry-content,  */&#60;br /&#62;
.home .entry-meta,&#60;br /&#62;
.home .entry-utility {&#60;br /&#62;
    display:none;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;At this point, my site hasn't launched. That being the case, I did write an excerpt with the placeholder post to see if it would appear—it doesn't. It appears, however, in Archive and Categories.&#60;/p&#62;
&#60;p&#62;I comfortable working with PHP. As such, I look foward to any advise you all have.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>Anthrax on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1746</link>
<pubDate>Wed, 18 Feb 2009 14:11:53 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">1746@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The excerpt works fine, but how can i force the_exerpt to ignore image tags?&#60;br /&#62;
To show you the Problem just take a look at my Blog and scoll down till &#34;neues Ego in der XBox360 Welt!&#34;.&#60;/p&#62;
&#60;p&#62;[solved] ... with preg_replace
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1733</link>
<pubDate>Tue, 17 Feb 2009 14:03:31 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">1733@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;No code changes needed here!
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1725</link>
<pubDate>Tue, 17 Feb 2009 10:02:54 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">1725@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey Anthrax,&#60;/p&#62;
&#60;p&#62;I checked some blogs regarding Syntax Highlighting yesterday .. The plugins using the 'pre' tag plus the GeSHi code were reported to be pretty robust against most of the excerpt tools. Unfortunately a lot of tools are doing a lot of things using filter functions. None of us can give you an general answer if a plugin would work in general.&#60;/p&#62;
&#60;p&#62;This was the major reason why I copied the functionality of excerpt and expert_rss into thematic functions to make it bullet-proof.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Anthrax on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1721</link>
<pubDate>Tue, 17 Feb 2009 07:52:02 +0000</pubDate>
<dc:creator>Anthrax</dc:creator>
<guid isPermaLink="false">1721@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Does it work if we use other Plugins that have a content filter? A Code-View Plugin needs a&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;pre&#38;gt;&#60;/code&#62; tag at the beginning and the end of a Code display in a post. Whats happend if the_excerpt cut it between this two tags?
&#60;/p&#62;</description>
</item>
<item>
<title>Ian Stewart on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1719</link>
<pubDate>Tue, 17 Feb 2009 01:34:15 +0000</pubDate>
<dc:creator>Ian Stewart</dc:creator>
<guid isPermaLink="false">1719@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Read Justin's example. It's exactly what you're talking about.
&#60;/p&#62;</description>
</item>
<item>
<title>waseem on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1718</link>
<pubDate>Tue, 17 Feb 2009 00:32:14 +0000</pubDate>
<dc:creator>waseem</dc:creator>
<guid isPermaLink="false">1718@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yeah but it would be way cooler if you can do it through the functions file of the child theme. Not sure if that's possible. Maybe there is a way to filter it out or something.
&#60;/p&#62;</description>
</item>
<item>
<title>Ian Stewart on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1717</link>
<pubDate>Tue, 17 Feb 2009 00:20:02 +0000</pubDate>
<dc:creator>Ian Stewart</dc:creator>
<guid isPermaLink="false">1717@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Justin Tadlock has a good example of how to do this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://justintadlock.com/archives/2008/08/24/replacing-wordpress-content-with-an-excerpt-without-editing-theme-files&#34; rel=&#34;nofollow&#34;&#62;http://justintadlock.com/archives/2008/08/24/replacing-wordpress-content-with-an-excerpt-without-editing-theme-files&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>waseem on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1716</link>
<pubDate>Mon, 16 Feb 2009 23:31:35 +0000</pubDate>
<dc:creator>waseem</dc:creator>
<guid isPermaLink="false">1716@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;in the index file instead of using get_content(); I used get_the_excerpt(). This calls for the excerpt you typed when you published a post. If you dont have an excerpt I think wordpress fakes one by placing the first 55 words of the post.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1707</link>
<pubDate>Mon, 16 Feb 2009 11:31:51 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">1707@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;could you please let me know what you changed in index.php.&#60;/p&#62;
&#60;p&#62;I'm currently working on Thematic 0.9 to make it more flexible.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>waseem on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1704</link>
<pubDate>Mon, 16 Feb 2009 00:41:15 +0000</pubDate>
<dc:creator>waseem</dc:creator>
<guid isPermaLink="false">1704@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ohh I figured it out but I had to edit the index file of the thematic theme. Is there a way to do this from my functions file with out touching the index.php?
&#60;/p&#62;</description>
</item>
<item>
<title>waseem on "Creating a short excerpt"</title>
<link>http://themeshaper.com/forums/topic/creating-a-short-excerpt#post-1703</link>
<pubDate>Mon, 16 Feb 2009 00:33:58 +0000</pubDate>
<dc:creator>waseem</dc:creator>
<guid isPermaLink="false">1703@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey,&#60;br /&#62;
How can I change the amount of words that show up for a post. I only want a short excerpt of the content rather than showing the whole post.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
