New Landing How can we help? Themeforest Theme Support Supreme How to include a shot bio in post author´s area

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Supreme
  • #49238
    jcnavarro
    Member
    Post count: 3

    Hello,

    In the post author´s area currently we only can see the author´s photo and name. We would like to add a short bio of the author and a link to the author´s post archive as well.

    Please, can you help us to solve this issue?

    Thanks in advance.

    Kind regards,
    Juan Carlos

    #50181
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, in single.php find

    <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("By", "swiftframework"); ?></span><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a></div>
    							<div class="post-date"><?php printf(__('On %1$s', 'swiftframework'), $post_date); ?></div>
    							<div class="item-cats"><?php echo $post_categories; ?></div>
    						</div>

    replace it with

    <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("By", "swiftframework"); ?></span><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a></div>
    							<div class="post-date"><?php printf(__('On %1$s', 'swiftframework'), $post_date); ?></div>
    							<div class="item-cats"><?php echo $post_categories; ?></div>
    						<br>
    						<?php get_the_author_meta('description'); ?>
    </div>

    Let me know if that helps!

    #51115
    alig2121
    Member
    Post count: 46
    This reply has been marked as private.
    #51576
    Melanie – SUPPORT
    Member
    Post count: 11032

    Neighborhood:

    <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" itemprop="author" itemscope itemtype="http://schema.org/Person"><span><?php _e("Posted by", "swiftframework"); ?></span><a itemprop="url" href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><span itemprop="name"><?php the_author_meta('display_name'); ?></span></a></div>
    							<div class="post-date" itemprop="datePublished"><?php echo $post_date; ?></div>
    							<div class="post-categories"><?php echo $post_categories; ?></div>
    						</div>
    					</div>

    to

    	<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" itemprop="author" itemscope itemtype="http://schema.org/Person"><span><?php _e("Posted by", "swiftframework"); ?></span><a itemprop="url" href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><span itemprop="name"><?php the_author_meta('display_name'); ?></span></a></div>
    							<div class="post-date" itemprop="datePublished"><?php echo $post_date; ?></div>
    							<div class="post-categories"><?php echo $post_categories; ?></div>
    							                        <?php get_the_author_meta('description'); ?>
    
    						</div>
    					</div>

    in single.php

    #51858
    alig2121
    Member
    Post count: 46

    Thanks Melanie,
    I tried adding the bio inside the profile of the user in the “Biographical Info” which is in users > your profile, but I am thinking that might not be the place I need to place the bio.
    Could you please guide me on where I should place it.
    Thanks a lot

    #51968
    Melanie – SUPPORT
    Member
    Post count: 11032

    That would be the correct place, yes. It doesn’t work?

    #51996
    alig2121
    Member
    Post count: 46
    This reply has been marked as private.
    #52034
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi!
    I’d like to check the backend of your website, so to speed things up, could you let me know your login details via a private reply please?

    Thanks and cheers!

    #52042
    alig2121
    Member
    Post count: 46
    This reply has been marked as private.
    #52296
    Melanie – SUPPORT
    Member
    Post count: 11032

    Aha!
    The correct code now is:

    <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" itemprop="author" itemscope itemtype="http://schema.org/Person"><span><?php _e("Posted by", "swiftframework"); ?></span><a itemprop="url" href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><span itemprop="name"><?php the_author_meta('display_name'); ?></span></a></div>
                                <div class="post-date" itemprop="datePublished"><?php echo $post_date; ?></div>
                                <div class="post-categories"><?php echo $post_categories; ?></div>
    <?php the_author_description(); ?> 
    
                            </div>
                        </div>

    I changed it for you already 🙂

    #52301
    alig2121
    Member
    Post count: 46

    Thanks a lot Melanie…
    I just saw it 🙂

    #52307
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Melanie, great work!

Viewing 12 posts - 1 through 12 (of 12 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