<?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: Read more link in manual excerpt</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 13:14:10 +0000</pubDate>

<item>
<title>gaillen on "Read more link in manual excerpt"</title>
<link>http://themeshaper.com/forums/topic/read-more-link-in-manual-excerpt#post-12994</link>
<pubDate>Fri, 11 Jun 2010 06:51:28 +0000</pubDate>
<dc:creator>gaillen</dc:creator>
<guid isPermaLink="false">12994@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you again Gene. That worked and so did the reference to the excerpt more filter. I now have both types of excerpts behaving the same on my posts, categories and archives pages. Much easier to explain to my end user if these all have a consistent behaviour. Now they can choose to manually write the excerpt or let it auto generate with the final product behaving the same for readers in both cases.&#60;/p&#62;
&#60;p&#62;If anyone else is looking for this solution here is the combination in use in my child theme functions.php . Note the addition of a class to the read more permalink to apply CSS styling.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Displays excerpt of posts on posts/home page moved to &#38;quot;articles&#38;quot; with static front page
function childtheme_content($content) {
	if ( is_home () ) {
		$content= &#38;#39;excerpt&#38;#39;;}
	return $content;
}
add_filter(&#38;#39;thematic_content&#38;#39;, &#38;#39;childtheme_content&#38;#39;);

// Custom excerpt length (change the numerical value)
function new_excerpt_length($length) {
return 100;
}
add_filter(&#38;#39;excerpt_length&#38;#39;, &#38;#39;new_excerpt_length&#38;#39;);

// Changes the behaviour of manual excerpts to include read more link (note css class)
function all_excerpts_get_more_link($post_excerpt) {

	return $post_excerpt . &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;. get_permalink($post-&#38;gt;ID) . &#38;#39;&#38;quot; class=&#38;quot;read-more&#38;quot;&#38;gt;&#38;#39; . &#38;#39; ...continue reading article...&#38;#39; . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}
add_filter(&#38;#39;wp_trim_excerpt&#38;#39;, &#38;#39;all_excerpts_get_more_link&#38;#39;);

// Filters [...] from the manual excerpts string
function new_excerpt_more($more) {
	return &#38;#39;&#38;#39;;
}
add_filter(&#38;#39;excerpt_more&#38;#39;, &#38;#39;new_excerpt_more&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;-Gaillen
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Read more link in manual excerpt"</title>
<link>http://themeshaper.com/forums/topic/read-more-link-in-manual-excerpt#post-12992</link>
<pubDate>Fri, 11 Jun 2010 02:49:58 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">12992@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi gaillen-&#60;/p&#62;
&#60;p&#62;I think that the more link behavior of WordPress is more closely tied to building themes with templates than the newer child theme method using filters and actions provided by a theme framework. I still find the excerpt &#38;#38; more-tag variations baffling at times. &#60;/p&#62;
&#60;p&#62;Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function all_excerpts_get_more_link($post_excerpt) {

	return $post_excerpt . &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39;. get_permalink($post-&#38;gt;ID) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . &#38;#39;Read More...&#38;#39; . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
}
add_filter(&#38;#39;wp_trim_excerpt&#38;#39;, &#38;#39;all_excerpts_get_more_link&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You may want to do something with the &#60;code&#62;excerpt_more&#60;/code&#62; filter to remove or replace the &#60;code&#62;[...]&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Here are a list of codex pages that may shed some light:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Customizing_the_Read_More&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Customizing_the_Read_More&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_trim_excerpt&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_trim_excerpt&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>gaillen on "Read more link in manual excerpt"</title>
<link>http://themeshaper.com/forums/topic/read-more-link-in-manual-excerpt#post-12989</link>
<pubDate>Fri, 11 Jun 2010 01:24:15 +0000</pubDate>
<dc:creator>gaillen</dc:creator>
<guid isPermaLink="false">12989@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Is it possible to auto generate a read more link for manual excerpts?&#60;/p&#62;
&#60;p&#62;I can find lots of information to modify the read more link for auto generated excerpts but actually creating one for manually generated seems to not exist?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
