ThemeShaper Forums » Thematic

function to add author bio to bottom of single post pages

(3 posts)
  • Started 10 years ago by jrobben
  • Latest reply from jrobben
  • This topic is resolved
  1. It took awhile for me to figure the right hook for this so I thought I would post it
    the key is thematic_navigation_below.

    /* add a Author Bio Box in a new div at bottom of single post*/
    function add_author_bio() {  if (is_single ()) {
    <div ID="author-single">
    <div ID="author-info">
    <?php echo get_avatar( get_the_author_id() , 80 ); ?>
    Author: <a href="<?php the_author_url(); ?>">
    <?php the_author_nickname(); ?> </a>
    <br />
    <?php the_author_description(); ?><br />
    <a href="<?php bloginfo('url'); ?>/?author=<?php the_author_ID(); ?>">
    <?php the_author_nickname(); ?> has wrote
    <?php the_author_posts(); ?> articles for us.</a>
    } }
    add_action('thematic_navigation_below', 'add_author_bio',1);
    Posted 10 years ago #
  2. This is another solution for the post footer:


    Posted 10 years ago #
  3. Thanks, I will add that to my file of snippets

    Posted 10 years ago #

RSS feed for this topic


You must log in to post.