WordPress: How to get the current logged in author page URL?

Is there a way to display, via a PHP function, the author posts link (myblog.com/author/jason) of the current logged in user ?

In fact, I would like to display, for every logged in user, a “My personnal page” link which links toward his author page.

Read More

Thanks !

Related posts

Leave a Reply

2 comments

  1. Try this :

    <a href="<?php echo home_url() . '/author/' . get_the_author_meta( 'user_login', wp_get_current_user()->ID ); ?>" >My personal page</a>