Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
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:
<div class=”userpro-profile-img” data-key=”profilepicture”>
permalink($user_id); ?>” title=”<?php _e(‘View Profile’,’userpro’); ?>”>
<?php echo get_avatar( $user_id, $profile_thumb_size ); ?>
</div>
Any suggestion will be appreciated.
Thanks
Hi Steve,
You can replace – post_author); ?>
with –
permalink($user_id); ?>” title=”“>post_author); ?>
Try and let me know . Thanks!
Hi,
Can you please share the url of the page where you want to show this . Also please let me know the file name where you have put this above mentioned code Or please share that file so that we can check locally .
Thanks!
You must be logged in to reply to this topic.