<?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: Link to author archive page from single post "author box"</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 25 May 2013 20:23:19 +0000</pubDate>

<item>
<title>eilza49 on "Link to author archive page from single post "author box""</title>
<link>http://themeshaper.com/forums/topic/link-to-author-archive-page-from-single-post-author-box#post-17914</link>
<pubDate>Sun, 26 Dec 2010 07:46:05 +0000</pubDate>
<dc:creator>eilza49</dc:creator>
<guid isPermaLink="false">17914@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I have added an author bio box to the bottom of the single post page (as here &#60;a href=&#34;http://themeshaper.com/forums/topic/customizing-author-info&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/customizing-author-info&#60;/a&#62;). &#60;/p&#62;
&#60;p&#62;At the end of the author bio box, I'd like to add a line of text which links to the author archive page, for example: &#60;/p&#62;
&#60;p&#62;Read more by (author). &#60;/p&#62;
&#60;p&#62;So, now, the function code looks like the one suggested in the above quoted thread by Chris: &#60;/p&#62;
&#60;p&#62;&#60;code&#62;function childtheme_postfooter($content) {&#60;br /&#62;
	// we want the author's bio only on a single post&#60;br /&#62;
	if (is_single()) {&#60;br /&#62;
		$content .= &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34;;&#60;br /&#62;
		// the whole class containing everything&#60;br /&#62;
		$content .= '&#38;lt;div class=&#34;author_info&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		// the class containing the gravatar&#60;br /&#62;
		$content .= '&#38;lt;div class=&#34;author_gravatar&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		$content .= str_replace( &#34;class='avatar&#34;, &#34;class='photo avatar&#34;, get_avatar(get_the_author_email()) ) . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		$content .= '&#38;lt;/div&#38;gt; &#38;lt;!-- #author_gravatar --&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		// the class containing the author's name and bio&#60;br /&#62;
		$content .= '&#38;lt;div class=&#34;author_bio&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		// we're getting the name&#60;br /&#62;
		$content .= '&#60;strong&#62;' . get_the_author() . '&#60;/strong&#62;' . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		// we're getting the bio&#60;br /&#62;
		$content .= get_the_author_description() . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34; . &#34;\t&#34;;&#60;br /&#62;
		$content .= '&#38;lt;/div&#38;gt; &#38;lt;!-- #author_bio --&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
		$content .= &#34;\t&#34;;&#60;br /&#62;
		$content .= '&#38;lt;/div&#38;gt; &#38;lt;!-- #author_info --&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
	}&#60;br /&#62;
	// we need to return the postfooter content anyway&#60;br /&#62;
	return $content;&#60;br /&#62;
}&#60;br /&#62;
// add the filter function to the main function&#60;br /&#62;
add_filter('thematic_postfooter', 'childtheme_postfooter');&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;How can I add the link to the author archives? &#60;/p&#62;
&#60;p&#62;Many thanks for your help.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
