<?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: Post thumbnails for excerpts on home page</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 14:55:09 +0000</pubDate>

<item>
<title>middlesister on "Post thumbnails for excerpts on home page"</title>
<link>http://themeshaper.com/forums/topic/post-thumbnails-for-excerpts-on-home-page#post-21586</link>
<pubDate>Wed, 01 Jun 2011 12:03:08 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21586@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;First of all  you are using a child theme, right? You should not edit any of the thematic core files, any customization is done via filters and hooks in your child theme's functions.php&#60;/p&#62;
&#60;p&#62;The length of the excerpt is not decided by thematic but wordpress itself. But it doesn't really matter since the method is the same. You change it with a filter. Add this code to your functions.php and change the number to the number of words you want instead.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function new_excerpt_length($length) {
	return 20;
}
add_filter(&#38;#39;excerpt_length&#38;#39;, &#38;#39;new_excerpt_length&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;As for the thumbnails, thematic only adds them on the excerpts by default. The same applies here. You can add thumbnails to full post content with a filter &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_thumbnails_to_content($post) {
	if ( has_post_thumbnail() ) {
		$post = &#38;#39;&#38;lt;a class=&#38;quot;entry-thumb&#38;quot; href=&#38;quot;&#38;#39; . get_permalink() . &#38;#39;&#38;quot; title=&#38;quot;Permalink to &#38;#39; . get_the_title() . &#38;#39;&#38;quot; &#38;gt;&#38;#39; . get_the_post_thumbnail(get_the_ID(), $size, $attr) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39; . $post;
	}
	return $post;
}
add_filter(&#38;#39;the_content&#38;#39; , &#38;#39;add_thumbnails_to_content&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This will add the thumbnails everywhere, use conditional logic if you only want them on specific parts of your site.
&#60;/p&#62;</description>
</item>
<item>
<title>jervatron on "Post thumbnails for excerpts on home page"</title>
<link>http://themeshaper.com/forums/topic/post-thumbnails-for-excerpts-on-home-page#post-21576</link>
<pubDate>Tue, 31 May 2011 21:29:52 +0000</pubDate>
<dc:creator>jervatron</dc:creator>
<guid isPermaLink="false">21576@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I now see in the content-extensions.php file where different returns (e.g.: search results/archive/category listing/front page) are spelled out as either $content = 'full' or $content = 'excerpt'&#60;br /&#62;
It appears that anything set to 'full' won't display the post thumbnail, whereas 'excerpts' will.&#60;br /&#62;
How can I set 'full' posts to display a post thumbnail?&#60;/p&#62;
&#60;p&#62;That actually progresses me to a new question: How can I disable the automatic truncating?  I also set the &#34;Read more&#34; manually, so I'd like it to NOT automatically chop off content at 55 words (I found in the helpers.php file where the excerpt size is set to 55 words, but changing that value seems to do nothing)&#60;br /&#62;
Thanks for any and all help/hints
&#60;/p&#62;</description>
</item>
<item>
<title>jervatron on "Post thumbnails for excerpts on home page"</title>
<link>http://themeshaper.com/forums/topic/post-thumbnails-for-excerpts-on-home-page#post-21390</link>
<pubDate>Thu, 19 May 2011 16:15:35 +0000</pubDate>
<dc:creator>jervatron</dc:creator>
<guid isPermaLink="false">21390@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey guys,&#60;br /&#62;
I'm struggling with a post thumbnail issue on my website. . . the thumbnails show up on archive and category pages, but not on the home page.&#60;br /&#62;
I've looked through the forums here, and I'm not well versed enough in PHP to fully understand which php function I need to edit to enable this; so I was hoping for a little guidance.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
