You could use this:
<a href="https://wordpress.stackexchange.com/questions/54419/<?php echo home_url() ."/author/' . get_the_author_meta( 'user_login', wp_get_current_user()->ID ); ?>" >My Posts</a>
Related Posts:
- Guest Author – How to display posts on /author/ archive page
- Exclude a category of posts in author template
- Add author section on Author archive posts
- Difference between an archive and a page listing posts
- Hook that get’s triggered when the author of a post is changed
- the_author() returns empty string
- Prevent Authors from viewing each others Posts
- has_archive=false on the default post type
- Display Random Author with Details in Sidebar
- Clear cache when a post is submitted [closed]
- How to show list of posts by author and category?
- WordPress: How to get the current logged in author page URL?
- How to add editor’s name to entry meta byline?
- Different permalink for posts and authors
- How to display posts by current user/author in a custom page template?
- Create an “All Posts” or “Archives” Page with WordPress 3.0?
- Post Format Archive template name for theme folder?
- Query posts distinct authors
- Restrict the Number of Posts an Author can Publish (over time)?
- widget should display post archive by year and on click also by month
- Search posts by post author name
- Get the user type of an author
- Show the title of the latest post by author
- Find most recent authors
- Must permalinks always point to single post pages?
- Show author post count in sidebar – Variable
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- Get current users post URL?
- Get the author of the latest revision
- Filter posts by author and category simultaneously
- Display most recent post in category instead of archive?
- Custom Post Type & Author not associating, user post count is 0, api doesn’t return author in post objects
- Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?
- Single.php Active Category Class
- Post author is changed to admin after his post is modified by admin
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Get all posts by post_author
- get_post_type_archive_link(‘post’) returns current category archive
- How to get the latest posting time of archived pages in WordPress?
- How can I control multiple editing of wordpress posts?
- Multiple authors for single post without plugin
- Limit number of posts a user can make per minute?
- Authors in menu, template list post by author
- Show the author’s count of total amount of posts assign to a custom taxonomy term
- Author must complete profile info before they can publish a post?
- WP rest api returns 404 only when author param is used
- change default post archive page link
- How can I list random authors from current post category?
- Display all months with posts and inside each month show the 5 latest posts
- Display posts from #6 to #20 on archive page
- Category List (Archive) Page Template By Category
- How can I show wordpress posts based on author?
- Show info to author only
- Getting category posts from a certain year
- Auto “expire” all of an authors posts on spcific date
- Yearly archive page for future year
- How to get the user meta data for a post?
- Which URL to enter into browser to show all posts in archive.php?
- Limit posts per author role (excluding admin) in home page
- How to display data in archive page?
- How can I show many posts an author has per week?
- How to give capability (publish contributors posts) to author role?
- Whitelist Author of Private Post
- Archiving by academic year instead of calendar year
- Show posts by a custom post author
- List category posts alphabetically on archive.php
- Getting the current author (it has changed) of a post, not the original author
- Showing author page if user has no post
- How to display excerpt post on hamepage and archive pages?
- Increase 10 post limit per page
- Display Notification Bar on Header on Certain Post Count
- Automatically create a new page daily with last three posts
- How do I retrieve a users’ last 5 posts?
- Archiving posts in wordpress
- obtain the author id given the post id
- Show comment number per author per day
- Get all comments of author’s posts
- (solved) getting post author’s user role
- Change all author links in Blog roll
- Display author’s name and avatar in post’s sidebar
- static landing page leading to author specific pages w/ “live” content
- If contributor has published 2 or more posts then show otherwise hide
- Custom Post Type archive
- All Posts Linking to Author Posts directly
- Change post author without using wp_update_post()
- Is it possible to lock all new and existing WordPress posts to one specific author?
- Does WP automatically tag posts into the archive?
- How to get the ability to change the author of a post
- Echo Text If User Is Logged in But NOT the Author of post
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- singular posts using archive styling
- How to limit author related post listing ?
- Restrict displaying posts to the poster itself (in Back-end)
- Get total post from an author
- I want to show my post for limited time, how is it possible?
- Send email to author of post on post submission
- How can I set a maximum allowed post size and number of posts submitted?
- Get x recent posts by author?
- Change Author Name to Sitename on Frontend
- How to edit the ‘