Get 30% discount on lifetime membership by using BFCM2023 coupon.
Offer ends on 30th Nov 2023 at 11:59:59 PM UTC.

Author Page Archive Link for the Current User

WordPress has a handy function called get_author_posts_url() that returns the URL of the archive page for the author of the current post.

If you are looking for the same but for the current user, pass the current user’s ID into the function.

Like this:

get_author_posts_url( get_current_user_id() )

Here’s how you do the same in Bricks:


Instant access to all 250+ Bricks code tutorials with BricksLabs Pro

Leave the first comment