<?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: Editing Entry Meta &#038; Post Utility Items</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 03:42:45 +0000</pubDate>

<item>
<title>iCristiano on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-16631</link>
<pubDate>Thu, 28 Oct 2010 15:23:58 +0000</pubDate>
<dc:creator>iCristiano</dc:creator>
<guid isPermaLink="false">16631@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi friends,&#60;br /&#62;
Thanks for this topic! It helped me a lot!&#60;/p&#62;
&#60;p&#62;I have a curious issue... I had used the script Gene published and almost everything is ok... but some strange thing is happen:&#60;/p&#62;
&#60;p&#62;On my &#34;post-meta&#34;, the links (authors and edit) don´t function on the single post... and on the archive´s page, the first one don´t function, but the next are ok! So, I suppose the problem is with the first post on the looping. If there is just one, it doesn´t work, if there are more than one, just the first doesn´t work...&#60;/p&#62;
&#60;p&#62;Strange, right? Any idea?&#60;br /&#62;
Take a look: &#60;a href=&#34;http://www.caramure.com.br/artigos/&#34; rel=&#34;nofollow&#34;&#62;http://www.caramure.com.br/artigos/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks!!!
&#60;/p&#62;</description>
</item>
<item>
<title>acts7 on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-16008</link>
<pubDate>Mon, 04 Oct 2010 16:19:44 +0000</pubDate>
<dc:creator>acts7</dc:creator>
<guid isPermaLink="false">16008@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@em hr&#60;br /&#62;
Just a quick note - there's a missing line in the &#60;/p&#62;
&#60;p&#62;function my_postheader_posttitle() {&#60;br /&#62;
   global $post;&#60;/p&#62;
&#60;p&#62;....&#60;br /&#62;
    	$posttitle = '&#38;lt;div class=&#34;post_header&#34;&#38;gt;';&#60;br /&#62;
       if (is_single() &#124;&#124; is_page()) {&#60;br /&#62;
        $posttitle .= '&#38;lt;h1 class=&#34;entry-title&#34;&#38;gt;' . get_the_title() . &#34;&#38;lt;/h1&#38;gt;\n&#34;;&#60;br /&#62;
//  YOU NEED TO CLOSE OUT THE DIV HERE BECAUSE THE META IS NOT CALLED ON PAGES&#60;br /&#62;
//  Here is the additional line of code needed:&#60;br /&#62;
        $posttitle .= &#34;&#38;lt;/div&#38;gt;&#38;lt;!-- .post_header --&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;    } elseif (is_404()) {&#60;br /&#62;
....&#60;/p&#62;
&#60;p&#62;Hopefully that will keep anyone else from having to comb over their code to figure why the sidebar was wrapping under comments.
&#60;/p&#62;</description>
</item>
<item>
<title>sreiwitch on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11504</link>
<pubDate>Fri, 16 Apr 2010 23:09:03 +0000</pubDate>
<dc:creator>sreiwitch</dc:creator>
<guid isPermaLink="false">11504@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Gene,&#60;/p&#62;
&#60;p&#62;I like the first option you gave and will pursue that one. Thanks for your input and for steering me in a good direction. If I come up with something good I'll post it back here in case someone else would want to use it.&#60;/p&#62;
&#60;p&#62;Sarah
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11471</link>
<pubDate>Fri, 16 Apr 2010 01:15:49 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11471@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The local avatars plugin does not look like it can display multiple sizes. Using more than one plugin seems unnecessary.&#60;/p&#62;
&#60;p&#62;I think it could be done one of two ways. They're just hunches, really.&#60;/p&#62;
&#60;p&#62;1. using the avatars plugin with a larger sized author avatar that is sized down for all but the author archive. My best guess is that this could be done by using PHP and  &#60;code&#62;str_replace&#60;/code&#62; to rewrite the avatar function output to limit the size using the img tag. This method would be the most dynamic and easiest to maintain.&#60;/p&#62;
&#60;p&#62;or&#60;/p&#62;
&#60;p&#62;2. Use the author specific body class to insert a background image of the large author photo into the primary aside for author archives and pad the top to allow the image to show without text overlaying it.&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>sreiwitch on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11467</link>
<pubDate>Thu, 15 Apr 2010 23:14:12 +0000</pubDate>
<dc:creator>sreiwitch</dc:creator>
<guid isPermaLink="false">11467@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Gene,&#60;/p&#62;
&#60;p&#62;The standard author bio and local avatar are working now. Sorry, my mistake. I forgot that earlier I had removed from author.php the code for pulling in author avatar/bio due to it showing at the page top and again in each post on the author page. I restored the code and it's showing fine now. Thanks!&#60;/p&#62;
&#60;p&#62;The next thing I’m trying to do is to have two versions of the avatar, one large that would display in the sidebar on a page where someone will input a large bio about the author (bio page) and the one that I'm currently using for the avatar (the large image would be on an actual page that I make, not the author’s post page). This is an example of what I'd like to do:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://thewinger.com/patricio-melo/&#34; rel=&#34;nofollow&#34;&#62;http://thewinger.com/patricio-melo/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There are two issues, how to get the author avatar in the sidebar dynamically based on either the page’s correspondence to the author name and how to have multiple sizes of the image.  &#60;/p&#62;
&#60;p&#62;I have tried unsuccessfully to put an author avatar in the sidebar. I installed the widget logic plugin, thinking that would give me some leverage, but that didn’t work either.&#60;/p&#62;
&#60;p&#62;I just started researching this and noticed that the example website is using a different plugin called user photo:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/user-photo/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/user-photo/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That creates different sizes of an uploaded author image, but now that the author avatar plugin is working and the calls placed within the functions neatly, I'm hesitant to change. I'm not sure how to integrate the new plugin's stuff into the function file. Currently reading about action hooks, but not yet up to speed.&#60;/p&#62;
&#60;p&#62;I would like your advice. Would it be easier to modify what I'm currently using with the local avatar plugin--to get it into the sidebar and to have a larger image appear there or should I start from scratch with the user photo plugin? Worst case scenario is to simply build each bio page, remove sidebar for those pages and stick the corresponding large author image there float right. Not at all dynamic and would be more work each time a new author is added, but it would work. What do you think?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Sarah
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11449</link>
<pubDate>Thu, 15 Apr 2010 12:39:41 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11449@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Sarah,&#60;/p&#62;
&#60;p&#62;I think i'm misunderstanding what you mean by standard functionality in:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62; preserve the standard functionality on the author archive and category archive pages
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I believe the code I gave you above restored the standard functionality of Thematic's original postheader_postmeta and my_postheader_posttitle functions.&#60;/p&#62;
&#60;p&#62;Are you saying that you want the avatar of the Author listed at the top of the Author archive near the &#60;code&#62;&#38;lt;h1 class=&#38;quot;post-title author&#38;quot;&#38;gt;&#60;/code&#62;  ? And do you want the avatars plugin to provide the avatar or WordPress' default avatar / gravitar behavior?&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>sreiwitch on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11431</link>
<pubDate>Wed, 14 Apr 2010 18:03:03 +0000</pubDate>
<dc:creator>sreiwitch</dc:creator>
<guid isPermaLink="false">11431@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Gene,&#60;/p&#62;
&#60;p&#62;Thanks so much for your reply. In my code above I've modified the functions as you advised:&#60;/p&#62;
&#60;p&#62;function my_postheader_posttitle($parent_content)&#60;/p&#62;
&#60;p&#62;function my_postheader_postmeta($parent_content)&#60;/p&#62;
&#60;p&#62;Then I modified my if statements above about the author pages:&#60;/p&#62;
&#60;p&#62; if (is_author()) {&#60;br /&#62;
return $parent_content;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;But it still looks the same as it did with my original code above. There's still no author image or info at the top of the author archive pages. Am I missing something? &#60;/p&#62;
&#60;p&#62;Thank for fixing my code in the post above and for your help with this. I really appreciate it.&#60;/p&#62;
&#60;p&#62;Sarah
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11418</link>
<pubDate>Wed, 14 Apr 2010 04:18:11 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">11418@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Sarah,&#60;/p&#62;
&#60;p&#62;You just need to adjust the child theme's filter function to return the parents original output for author archives.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;function my_postheader_posttitle($parent_content) {&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Starting the function like this will store the parent theme's output in a variable ($parent_content) so later on you can choose to return that original unaltered content like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (is_author()) {
return $parent_content;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Btw, I think  I've returned your post's code back to a viable state.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Gene
&#60;/p&#62;</description>
</item>
<item>
<title>sreiwitch on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-11394</link>
<pubDate>Mon, 12 Apr 2010 18:52:47 +0000</pubDate>
<dc:creator>sreiwitch</dc:creator>
<guid isPermaLink="false">11394@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;This is terrific and almost exactly what I'm trying to do. Thanks for the overall solution! I'm having trouble with one detail though and hoping for some help :)&#60;/p&#62;
&#60;p&#62;I'm also using the local avatar plugin and have successfully implemented the solution above, but would like to preserve the standard functionality on the author archive and category archive pages (all posts by author) so that the author avatar and bio only appear once at the top of those two page types, not repeatedly (which is what they do after adding the functions above). I've tried to do this for the author page using:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (is_author()) {
return FALSE;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;as in:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
function my_postheader_posttitle() {
   global $post;

   if (function_exists(&#38;#39;get_avatar&#38;#39;)) { // this only fails if pre WP2.5
   		$avtr = get_avatar($post-&#38;gt;post_author);
   	}
   		$post_avatar = &#38;#39;&#38;lt;div class=&#38;quot;author_avatar&#38;quot;&#38;gt;&#38;#39;;
        $post_avatar .= $avtr;
		$post_avatar .=&#38;#39;&#38;lt;/div&#38;gt;&#38;lt;!-- .author_avatar  --&#38;gt;&#38;#39;;

// Remove avatar/author info from author page.
if (is_author()) {
return FALSE;
}

   	$posttitle = &#38;#39;&#38;lt;div class=&#38;quot;post_header&#38;quot;&#38;gt;&#38;#39;;
       if (is_single() &#124;&#124; is_page()) {
        $posttitle .= &#38;#39;&#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39; . get_the_title() . &#38;quot;&#38;lt;/h1&#38;gt;\n&#38;quot;;
        }
    elseif (is_404()) {
        $posttitle .= &#38;#39;&#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;Not Found&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;quot;&#38;lt;/h1&#38;gt;\n&#38;quot;;  

    } else {
        $posttitle .= &#38;#39;&#38;lt;h2 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;;
        $posttitle .= get_permalink();
        $posttitle .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39;;
        $posttitle .= __(&#38;#39;Permalink to &#38;#39;, &#38;#39;thematic&#38;#39;) . the_title_attribute(&#38;#39;echo=0&#38;#39;);
        $posttitle .= &#38;#39;&#38;quot; rel=&#38;quot;bookmark&#38;quot;&#38;gt;&#38;#39;;
        $posttitle .= get_the_title();
        $posttitle .= &#38;quot;&#38;lt;/h2&#38;gt;\n&#38;quot;;

    }

    $my_postheader_open = $posttitle . $post_avatar;
    return $my_postheader_open;
}
add_filter(&#38;#39;thematic_postheader_posttitle&#38;#39;,&#38;#39;my_postheader_posttitle&#38;#39;);

function my_postheader_postmeta() {
    global $id, $post, $authordata;

    $posteditlink .= &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . thm_bloginfo(&#38;#39;wpurl&#38;#39;, FALSE) . &#38;#39;/wp-admin/post.php?action=edit&#38;amp;amp;post=&#38;#39; . $id;
    $posteditlink .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . __(&#38;#39;Edit post&#38;#39;, &#38;#39;thematic&#38;#39;) .&#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $posteditlink .= __(&#38;#39;Edit&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;#39;;
    $posteditlink = apply_filters(&#38;#39;thematic_postheader_posteditlink&#38;#39;,$posteditlink); 

    $postmeta = &#38;#39;&#38;lt;div class=&#38;quot;entry-meta&#38;quot;&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;meta-prep meta-prep-author&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;By &#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $postmeta .= &#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;;
    $postmeta .= get_author_link(false, $authordata-&#38;gt;ID, $authordata-&#38;gt;user_nicename);
  	$postmeta .= &#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;;
    $postmeta .= get_the_author();
    //if ( !(&#38;#39;&#38;#39;== $authordata-&#38;gt;user_description) ) : echo apply_filters(&#38;#39;archive_meta&#38;#39;, $authordata-&#38;gt;user_description); endif;
    $postmeta .= &#38;#39;&#38;lt;/a &#38;gt;&#38;lt; br/&#38;gt;&#38;#39;;
    $postmeta .= $authordata-&#38;gt;user_description;
    $postmeta .= &#38;#39;&#38;lt;/span&#38;gt;&#38;lt; br/&#38;gt;&#38;#39;;
    // don&#38;#39;t want the calendar icon. $postmeta .= &#38;#39;&#38;lt;img alt=&#38;quot;calendar icon&#38;quot; src=&#38;quot;http://magpub.com/wp-content/themes/edadv_template/images/calendar.png&#38;quot;/&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;entry-date&#38;quot;&#38;gt;&#38;lt;abbr class=&#38;quot;published&#38;quot; title=&#38;quot;&#38;#39;;
    $postmeta .= get_the_time(thematic_time_title()) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $postmeta .= get_the_time(thematic_time_display());
    $postmeta .= &#38;#39;&#38;lt;/abbr&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
    // Display edit link

// Remove avatar/author info from author page.
    if (is_author()) {
	return FALSE;
	}

    if (current_user_can(&#38;#39;edit_posts&#38;#39;)) {
        $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;edit&#38;quot;&#38;gt;&#38;#39; . $posteditlink . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    }
    $postmeta .= &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-meta --&#38;gt;\n&#38;quot;;

    $postheader_close = &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;!-- .post_header --&#38;gt;\n&#38;quot;;

    $my_postheader_close = $postmeta . $postheader_close;
    return $my_postheader_close;
}
add_filter(&#38;#39;thematic_postheader_postmeta&#38;#39;,&#38;#39;my_postheader_postmeta&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This does work to get rid of the avatar and author bio on the author page entirely, but I'm trying to simply suppress the function on the author and category &#34;all posts by author&#34; pages so that it will pick up the standard behavior previous to adding these functions. It used to just show the avatar and bio once on the top of the author page, right below the &#34;Author Archives: Author&#34;. How would I bring that back and also have it show up that same way on the category &#34;all posts by author&#34; pages?&#60;/p&#62;
&#60;p&#62;By the way, the forum stripped my  tags and my  tag as well so those need to have spaces removed.&#60;/p&#62;
&#60;p&#62;Thanks in advance for your assistance. &#60;/p&#62;
&#60;p&#62;I'm loving making my own child theme!&#60;/p&#62;
&#60;p&#62;Sarah Reiwitch
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7270</link>
<pubDate>Wed, 21 Oct 2009 03:22:51 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7270@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ok messing with editing I figured it out it if you have a &#60;code&#62;&#38;lt;br /&#38;gt;&#60;/code&#62; in backticks and save the comment and then view the comment you'll notice a space is added between the &#60;code&#62;br&#60;/code&#62; and the &#60;code&#62;/&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;And if you then come back and edit the comment it is at that point the &#60;code&#62;&#38;lt;br /&#38;gt;&#60;/code&#62;  is stripped.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7269</link>
<pubDate>Wed, 21 Oct 2009 03:04:25 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7269@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Heads up... I've gotten into the habit of copying my code after posting here and retesting locally to make sure all is well. This go round no so much.&#60;br /&#62;
Either I'm going mad or the forum is stripping &#60;code&#62;&#38;lt; b r / &#38;gt;&#60;/code&#62;'s  I've  included spaces so it wouldn't get stripped this time. In both code snippets above a &#60;code&#62;&#38;lt; b r / &#38;gt;&#60;/code&#62; went missing.&#60;br /&#62;
It is quite possible I've gone mad.&#60;/p&#62;
&#60;p&#62;So where you see &#60;code&#62;$postmeta .= &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;&#60;/code&#62; you need to change to &#60;code&#62;$postmeta .= &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;lt; b r / &#38;gt;&#38;#39;;&#60;/code&#62; dont for get to remove the spaces.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7268</link>
<pubDate>Wed, 21 Oct 2009 02:43:59 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7268@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Chris is right about the change in markup. To bring the avatar up beside the title you want markup as he laid out. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_postheader_posttitle() {
   global $post;

   if (function_exists(&#38;#39;get_avatar&#38;#39;)) { // this only fails if pre WP2.5
   		$avtr = get_avatar($post-&#38;gt;post_author);
   	}
   		$post_avatar = &#38;#39;&#38;lt;div class=&#38;quot;author_avatar&#38;quot;&#38;gt;&#38;#39;;
        $post_avatar .= $avtr;
		$post_avatar .=&#38;#39;&#38;lt;/div&#38;gt;&#38;lt;!-- .author_avatar  --&#38;gt;&#38;#39;;

    	$posttitle = &#38;#39;&#38;lt;div class=&#38;quot;post_header&#38;quot;&#38;gt;&#38;#39;;
       if (is_single() &#124;&#124; is_page()) {
        $posttitle .= &#38;#39;&#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39; . get_the_title() . &#38;quot;&#38;lt;/h1&#38;gt;\n&#38;quot;;
    } elseif (is_404()) {
        $posttitle .= &#38;#39;&#38;lt;h1 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;Not Found&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;quot;&#38;lt;/h1&#38;gt;\n&#38;quot;;
    } else {
        $posttitle .= &#38;#39;&#38;lt;h2 class=&#38;quot;entry-title&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;&#38;#39;;
        $posttitle .= get_permalink();
        $posttitle .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39;;
        $posttitle .= __(&#38;#39;Permalink to &#38;#39;, &#38;#39;thematic&#38;#39;) . the_title_attribute(&#38;#39;echo=0&#38;#39;);
        $posttitle .= &#38;#39;&#38;quot; rel=&#38;quot;bookmark&#38;quot;&#38;gt;&#38;#39;;
        $posttitle .= get_the_title();
        $posttitle .= &#38;quot;&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;\n&#38;quot;;

    }

    $my_postheader_open = $post_avatar . $posttitle;
    return $my_postheader_open;
}
add_filter(&#38;#39;thematic_postheader_posttitle&#38;#39;,&#38;#39;my_postheader_posttitle&#38;#39;);

function my_postheader_postmeta() {
    global $id, $post, $authordata;

    $posteditlink .= &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . thm_bloginfo(&#38;#39;wpurl&#38;#39;, FALSE) . &#38;#39;/wp-admin/post.php?action=edit&#38;amp;amp;post=&#38;#39; . $id;
    $posteditlink .= &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . __(&#38;#39;Edit post&#38;#39;, &#38;#39;thematic&#38;#39;) .&#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $posteditlink .= __(&#38;#39;Edit&#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
    $posteditlink = apply_filters(&#38;#39;thematic_postheader_posteditlink&#38;#39;,$posteditlink); 

    $postmeta = &#38;#39;&#38;lt;div class=&#38;quot;entry-meta&#38;quot;&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;meta-prep meta-prep-author&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;By &#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $postmeta .= &#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;;
    $postmeta .= get_author_link(false, $authordata-&#38;gt;ID, $authordata-&#38;gt;user_nicename);
    $postmeta .= &#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;;
    $postmeta .= get_the_author();
    $postmeta .= &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;img alt=&#38;quot;calendar icon&#38;quot; src=&#38;quot;http://magpub.com/wp-content/themes/edadv_template/images/calendar.png&#38;quot;/&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;entry-date&#38;quot;&#38;gt;&#38;lt;abbr class=&#38;quot;published&#38;quot; title=&#38;quot;&#38;#39;;
    $postmeta .= get_the_time(thematic_time_title()) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $postmeta .= get_the_time(thematic_time_display());
    $postmeta .= &#38;#39;&#38;lt;/abbr&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
    // Display edit link
    if (current_user_can(&#38;#39;edit_posts&#38;#39;)) {
        $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;edit&#38;quot;&#38;gt;&#38;#39; . $posteditlink . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    }
    $postmeta .= &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-meta --&#38;gt;\n&#38;quot;;

    $postheader_close = &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;!-- .post_header --&#38;gt;\n&#38;quot;;

    $my_postheader_close = $postmeta . $postheader_close;
    return $my_postheader_close;
}
add_filter(&#38;#39;thematic_postheader_postmeta&#38;#39;,&#38;#39;my_postheader_postmeta&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and then basic style:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;.author_avatar, .post_header {float:left}
.entry-content {clear:left}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The plugin works well with this code on index, single etc. and degrades gracefully as it is only a filter of a WP function. There are no issues with thematics comments area pulling the local avatars either. This effect is on pages also not sure if that is a desired effect.
&#60;/p&#62;</description>
</item>
<item>
<title>sfrangos on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7265</link>
<pubDate>Tue, 20 Oct 2009 23:05:59 +0000</pubDate>
<dc:creator>sfrangos</dc:creator>
<guid isPermaLink="false">7265@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Chris &#38;#38; Gene -&#60;/p&#62;
&#60;p&#62;Thanks.  One last tweak -- displaying specific avatars for each author.  As I read the directions for the special avatar plugin, we may have to get creative with how it goes into the functions file:&#60;br /&#62;
    * Just put the plug-in into your plug-in directory (if this doesn’t make sense it probably isn’t something you should be trying :-) ) and activate it.&#60;br /&#62;
    * Use the form, Users » Avatars, to define any local avatars for your users. Specify the URI for an avatar image, something like &#60;a href=&#34;http://your.domain/avatars/image.jpg,&#34; rel=&#34;nofollow&#34;&#62;http://your.domain/avatars/image.jpg,&#60;/a&#62; where avatars is a directory containing your local images.&#60;br /&#62;
    * Also you may set a default size (in pixels) for avatars and define a default image (e.g. &#60;a href=&#34;http://your.domain/avatars/default.jpg&#34; rel=&#34;nofollow&#34;&#62;http://your.domain/avatars/default.jpg&#60;/a&#62;) to use when no local or global avatar is available.&#60;br /&#62;
    * The code to include in your template files is documented on the Users » Avatars page too. To start with try:&#60;br /&#62;
          o Put get_avatars($comment); inside the comments loop of your comments.php template file to show the comment author’s avatar.&#60;br /&#62;
          o Put get_avatar($post-&#38;gt;post_author); in your single.php template file to show the post author’s avatar. You’ll need to declare global $post; in the file too.&#60;br /&#62;
    * Make use of this feature to generate a unqiue Wavatar (other options exist).&#60;/p&#62;
&#60;p&#62;Full instructions about plugin is here:  &#60;a&#62;&#60;a href=&#34;http://www.sterling-adventures.co.uk/blog/2008/03/01/avatars-plugin/&#34; rel=&#34;nofollow&#34;&#62;http://www.sterling-adventures.co.uk/blog/2008/03/01/avatars-plugin/&#60;/a&#62;&#34;&#38;gt;&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks -&#60;br /&#62;
Scott
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7257</link>
<pubDate>Tue, 20 Oct 2009 21:21:57 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">7257@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Think it would be a good solution to create something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;author_avatar&#38;quot;&#38;gt;
        ... the author&#38;#39;s avatar
    &#38;lt;/div&#38;gt;

    &#38;lt;div class=&#38;quot;post_header&#38;quot;&#38;gt;
        ... the post title
        ... By author
        ... Icon date edit-link
    &#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;With this markup you could use floats to mount the avatar and the post header containing the title and the meta information side by side.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7256</link>
<pubDate>Tue, 20 Oct 2009 21:15:00 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">7256@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@Gene .. you're right.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7255</link>
<pubDate>Tue, 20 Oct 2009 21:11:47 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">7255@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Scott,&#60;/p&#62;
&#60;p&#62;which additional CSS markup do you need? :)&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7253</link>
<pubDate>Tue, 20 Oct 2009 20:59:45 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">7253@http://themeshaper.com/forums/</guid>
<description>&#60;pre&#62;&#60;code&#62;function my_postheader_postmeta() {
    global $id, $post, $authordata;

    if (function_exists(&#38;#39;get_avatar&#38;#39;)) {
    	$avtr = get_avatar();
    } else {
    	$avtr = &#38;#39;&#38;lt;img alt=&#38;quot;default avatar&#38;quot; src=&#38;quot;http://bit.ly/2yYpZc&#38;quot;/&#38;gt;&#38;#39;;
    } 

    $postmeta = &#38;#39;&#38;lt;div class=&#38;quot;entry-meta&#38;quot;&#38;gt;&#38;#39;;
    $postmeta .= $avtr;
    $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;meta-prep meta-prep-author&#38;quot;&#38;gt;&#38;#39; . __(&#38;#39;By &#38;#39;, &#38;#39;thematic&#38;#39;) . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    $postmeta .= &#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;;
    $postmeta .= get_author_link(false, $authordata-&#38;gt;ID, $authordata-&#38;gt;user_nicename);
    $postmeta .= &#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;;
    $postmeta .= get_the_author();
    $postmeta .= &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;img alt=&#38;quot;calendar icon&#38;quot; src=&#38;quot;http://magpub.com/wp-content/themes/edadv_template/images/calendar.png&#38;quot;/&#38;gt;&#38;#39;;
    $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;entry-date&#38;quot;&#38;gt;&#38;lt;abbr class=&#38;quot;published&#38;quot; title=&#38;quot;&#38;#39;;
    $postmeta .= get_the_time(thematic_time_title()) . &#38;#39;&#38;quot;&#38;gt;&#38;#39;;
    $postmeta .= get_the_time(thematic_time_display());
    $postmeta .= &#38;#39;&#38;lt;/abbr&#38;gt;&#38;lt;/span&#38;gt;&#38;#39;;
    // Display edit link
    if (current_user_can(&#38;#39;edit_posts&#38;#39;)) {
        $postmeta .= &#38;#39;&#38;lt;span class=&#38;quot;edit&#38;quot;&#38;gt;&#38;#39; . $posteditlink . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;
    }
    $postmeta .= &#38;quot;&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-meta --&#38;gt;\n&#38;quot;;
    return $postmeta;
}
add_filter(&#38;#39;thematic_postheader_postmeta&#38;#39;,&#38;#39;my_postheader_postmeta&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Problem was you didnt need the &#60;code&#62;$postmeta = apply_filters(&#38;#39;thematic_postheader_postmeta&#38;#39;,$postmeta);&#60;/code&#62;&#60;br /&#62;
instead you needed to &#60;code&#62;return $postmeta;&#60;/code&#62;  Tthat is my avatar as the default fall-back image if the plugin fails so replace it with your default.&#60;/p&#62;
&#60;p&#62;- Gene
&#60;/p&#62;</description>
</item>
<item>
<title>sfrangos on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7251</link>
<pubDate>Tue, 20 Oct 2009 20:17:11 +0000</pubDate>
<dc:creator>sfrangos</dc:creator>
<guid isPermaLink="false">7251@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi -&#60;/p&#62;
&#60;p&#62;One update... I am using the &#34;Avatars&#34; plugin, and must be able to show the author's custom avatar (a photo) in the meta location by inserting this code:&#60;br /&#62;
&#38;lt;?php $avtr = get_avatar(id [, size [, default-image-url]]); echo $avtr; ?&#38;gt;&#60;/p&#62;
&#60;p&#62;I assume it will be inserted in the functions file too, but am not sure how to do it.  &#60;/p&#62;
&#60;p&#62;Your help is appreciated.&#60;/p&#62;
&#60;p&#62;- Scott
&#60;/p&#62;</description>
</item>
<item>
<title>sfrangos on "Editing Entry Meta &#038; Post Utility Items"</title>
<link>http://themeshaper.com/forums/topic/editing-entry-meta-038-post-utility-items#post-7248</link>
<pubDate>Tue, 20 Oct 2009 19:36:29 +0000</pubDate>
<dc:creator>sfrangos</dc:creator>
<guid isPermaLink="false">7248@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi -&#60;/p&#62;
&#60;p&#62;I need to edit both the entry Meta items and the post utility items in more ways than CSS allows.  Saw the post on CSS fixes (thanks).  Also saw a post about moving some functions for these items into the child theme meta functions to edit there (thanks Chris).  Had problems with it though.&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;I have prepared a visual to show a before and after of what is needed here: &#60;a href=&#34;http://cmswebsitesolutions.com/images/ThematicMetaFix.png&#34;&#62;Visual example&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;Chris's earlier explaination is &#60;a href=&#34;http://themeshaper.com/forums/topic/change-the-post-metadata-text-for-icons#post-4674&#34;&#62;here&#60;/a&#62; (for reference).  Problem is after copying and pasting it into the Child Theme functions, I see code at top of page.&#60;/li&#62;
&#60;li&#62;Note that the fix requires both adding icons, and also HTML code (ie. for a line break, etc.) in those locations&#60;/li&#62;
&#60;p&#62;I believe in rewarding the good help here, so a $25 Amazon gift certificate goes to the solution provider who posts it here within 2 hours.  $20 within 3 hours.&#60;/p&#62;
&#60;p&#62;Thanks -&#60;br /&#62;
Scott&#60;/ul&#62;</description>
</item>

</channel>
</rss>
