<?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: Customizing thematic_postmeta_authorlink()</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 19:36:43 +0000</pubDate>

<item>
<title>jcollier on "Customizing thematic_postmeta_authorlink()"</title>
<link>http://themeshaper.com/forums/topic/customizing-thematic_postmeta_authorlink#post-15600</link>
<pubDate>Wed, 15 Sep 2010 01:23:43 +0000</pubDate>
<dc:creator>jcollier</dc:creator>
<guid isPermaLink="false">15600@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Some time a while back, I was under the impression that functions had to be removed before they could be replaced. Maybe that is not true ...
&#60;/p&#62;</description>
</item>
<item>
<title>OlivierL. on "Customizing thematic_postmeta_authorlink()"</title>
<link>http://themeshaper.com/forums/topic/customizing-thematic_postmeta_authorlink#post-14881</link>
<pubDate>Fri, 20 Aug 2010 17:29:01 +0000</pubDate>
<dc:creator>OlivierL.</dc:creator>
<guid isPermaLink="false">14881@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;In the code just above, what is the use of the function &#34;remove_oldpostmeta&#34; and &#34;add_action&#34;?&#60;/p&#62;
&#60;p&#62;I have tried the code without those lines, and it also works.
&#60;/p&#62;</description>
</item>
<item>
<title>jcollier on "Customizing thematic_postmeta_authorlink()"</title>
<link>http://themeshaper.com/forums/topic/customizing-thematic_postmeta_authorlink#post-13846</link>
<pubDate>Sun, 11 Jul 2010 20:09:08 +0000</pubDate>
<dc:creator>jcollier</dc:creator>
<guid isPermaLink="false">13846@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Similar problem, now resolved by making the underscore from the previous post.. &#60;/p&#62;
&#60;p&#62;I wanted to change &#34;By&#34; to &#34;Posted by&#34; in the authorlink. Used code below in child theme functions.php. Success&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Function to change language in thematic_post_meta_authorlink

function remove_oldpostmeta() {
remove_action(&#38;#39;thematic_postheader&#38;#39;, &#38;#39;thematic_post_meta_authorlink&#38;#39;);
}

add_action(&#38;#39;init&#38;#39;, &#38;#39;remove_oldpostmeta&#38;#39;);

function my_post_meta_authorlink() {

    global $authordata;

    $authorlink = &#38;#39;&#38;lt;span class=&#38;quot;meta-prep meta-prep-author&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;Posted by &#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $authorlink .= &#38;#39;&#38;lt;span class=&#38;quot;author vcard&#38;quot;&#38;gt;&#38;#39;. &#38;#39;&#38;lt;a class=&#38;quot;url fn n&#38;quot; href=&#38;quot;&#38;#39;;
    $authorlink .= get_author_posts_url($authordata-&#38;gt;ID, $authordata-&#38;gt;user_nicename);
    $authorlink .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . __(&#38;#39;View all posts by &#38;#39;, &#38;#39;thematic&#38;#39;) . get_the_author() . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $authorlink .= get_the_author();
    $authorlink .= &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;

    return $authorlink;
} 

add_filter(&#38;#39;thematic_post_meta_authorlink&#38;#39;,&#38;#39;my_post_meta_authorlink&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>devonharper on "Customizing thematic_postmeta_authorlink()"</title>
<link>http://themeshaper.com/forums/topic/customizing-thematic_postmeta_authorlink#post-12654</link>
<pubDate>Fri, 28 May 2010 21:15:24 +0000</pubDate>
<dc:creator>devonharper</dc:creator>
<guid isPermaLink="false">12654@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have been having the same problem filtering the following functions:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;thematic_postmeta_authorlink&#60;/li&#62;
&#60;li&#62;thematic_postmeta_entrydate&#60;/li&#62;
&#60;li&#62;thematic_postmeta_editlink&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;When I took a look at the source code in library\extensions\content-extensions.php and noticed that the apply_filters calls for each of these functions uses an extra underscore in the filter name. The filter names that currenty work are:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;thematic_post_meta_authorlink&#60;/li&#62;
&#60;li&#62;thematic_post_meta_entrydate&#60;/li&#62;
&#60;li&#62;thematic_post_meta_editlink&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;Hope this helps.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Customizing thematic_postmeta_authorlink()"</title>
<link>http://themeshaper.com/forums/topic/customizing-thematic_postmeta_authorlink#post-11130</link>
<pubDate>Wed, 31 Mar 2010 20:58:52 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">11130@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;you forgot:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;return $authorlink;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;at the end of your function.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Relaxasaurus on "Customizing thematic_postmeta_authorlink()"</title>
<link>http://themeshaper.com/forums/topic/customizing-thematic_postmeta_authorlink#post-11086</link>
<pubDate>Mon, 29 Mar 2010 19:03:35 +0000</pubDate>
<dc:creator>Relaxasaurus</dc:creator>
<guid isPermaLink="false">11086@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Instead of saying &#34;By author&#34; I would like it to say &#34;This post created by author&#34;&#60;/p&#62;
&#60;p&#62;Added this to my functions.php file:&#60;/p&#62;
&#60;p&#62;=================&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function my_postmeta_authorlink() {

    global $authordata;

    $authorlink = &#38;#39;&#38;lt;span class=&#38;quot;meta-prep meta-prep-author&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;This post created by &#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $authorlink .= &#38;#39;&#38;lt;span class=&#38;quot;author vcard&#38;quot;&#38;gt;&#38;#39;. &#38;#39;&#38;lt;a class=&#38;quot;url fn n&#38;quot; href=&#38;quot;&#38;#39;;
    $authorlink .= get_author_posts_url($authordata-&#38;gt;ID, $authordata-&#38;gt;user_nicename);
    $authorlink .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . __(&#38;#39;View all posts by &#38;#39;, &#38;#39;thematic&#38;#39;) . get_the_author() . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $authorlink .= get_the_author();
    $authorlink .= &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;

} // end my_postheader_postmeta
add_filter(&#38;#39;thematic_postmeta_authorlink&#38;#39;,&#38;#39;my_postmeta_authorlink&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;=================&#60;/p&#62;
&#60;p&#62;Doesn't seem to change.  Any tips?  Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
