ThemeShaper Forums » Thematic

function to add author bio to bottom of single post pages

(3 posts)
  • Started 4 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.

    <?php
    /* 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>
    </div>
    </div>
    <?php
    } }
    add_action('thematic_navigation_below', 'add_author_bio',1);
    ?>
    Posted 4 years ago #
  2. This is another solution for the post footer:

    http://forums.themeshaper.com/topic/customizing-author-info

    Chris

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

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.