So, for my woocommerce product, I have the following to display the author name:
<div class="myauthor">
<?php echo get_the_author_meta('display_name',$product- >post_author); ?>
</div>
I am not sure how to make it so that the author name is clickable to that person's profile page: I am using "userpro" plugin to display users.
Following is the code that the userpro plugin has to link to user profile:
<div class="userpro-profile-img" data-key="profilepicture">
<a href="<?php echo $userpro->permalink($user_id); ?>" title="<?php _e('View Profile','userpro'); ?>">
<?php echo get_avatar( $user_id, $profile_thumb_size ); ?>
</a>
</div>
Any suggestion will be appreciated.
Thanks
Aucun commentaire:
Enregistrer un commentaire