Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Supreme › How to include a shot bio in post author´s area
New Landing › How can we help? › Themeforest Theme Support › Supreme › How to include a shot bio in post author´s area
- This topic has 11 replies, 4 voices, and was last updated 10 years by Kyle – SUPPORT.
-
Posted in: Supreme
-
February 15, 2014 at 11:09 pm #49238
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 CarlosFebruary 19, 2014 at 10:42 am #50181Hi, 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!
February 23, 2014 at 5:23 am #51115This reply has been marked as private.February 25, 2014 at 11:26 am #51576Neighborhood:
<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
February 26, 2014 at 1:56 am #51858Thanks 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 lotFebruary 26, 2014 at 10:30 am #51968That would be the correct place, yes. It doesn’t work?
February 26, 2014 at 11:11 am #51996This reply has been marked as private.February 26, 2014 at 11:52 am #52034Hi!
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!
February 26, 2014 at 12:06 pm #52042This reply has been marked as private.February 27, 2014 at 8:52 am #52296Aha!
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 🙂
February 27, 2014 at 9:02 am #52301Thanks a lot Melanie…
I just saw it 🙂February 27, 2014 at 9:09 am #52307Thanks Melanie, great work!
-
Posted in: Supreme
You must be logged in and have valid license to reply to this topic.