New Landing How can we help? Themeforest Theme Support Flexform Post author short bio & link

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Flexform
  • #6058
    willrz
    Member
    Post count: 8

    How can I display the post author bio and website link in a single-post?

    #6067
    willrz
    Member
    Post count: 8

    Nevermind, figured it out by modifying the single.php file.

    #10710
    josefstevens
    Member
    Post count: 7

    I would like to be able to do this as well. Could you advise how this is done?

    #10873
    willrz
    Member
    Post count: 8

    Open up the single.php file and copy/paste the code below after the closing tag for the show_social function. In this example, the last div class labeled linked-in actually just refers to the author link. We labeled it that way because the contributing authors use linkedin profile links so it was easy to reference for css.

    
    <?php if ($show_author_info) { ?>
    <div class="author-info-wrap clearfix">
    <div class="author-avatar"><?php if(function_exists('get_avatar')) { echo get_avatar(get_the_author_meta('ID'), '164'); } ?></div>
    <div class="post-info">
    <div class="author-name"><span><?php _e("Posted by", "swiftframework"); ?></span><a><?php the_author_meta('display_name'); ?></a></div>
    <div class="post-date"><?php echo $post_date; ?></div>
    <div class="description"><?php echo get_the_author_meta('description'); ?></div>
    <div class="linked-in">Connect with <?php the_author_link(); ?></div></div></div>
    <?php } ?>
    #10891
    josefstevens
    Member
    Post count: 7

    Thanks willrz! Works great. Cheers!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register