WordPress Display Author page link

Use Following code is used to create authors page link without displaying the author name publicly.
You have to use this code inside wordpress the_loop. WordPress Display Author page link on your website using following code.

<?php
$user_info = get_the_author_meta('user_nicename',$post->post_author);
$author_url=get_author_posts_url($post->post_author,$user_info);
?>
<p><a href="<?php echo $author_url; ?>" title="View All posts By this author">View All posts By this author</a></p>

Leave a Reply

Your email address will not be published. Required fields are marked *