Create author archive page?

I’m definitely having a mental blockage somewhere.

I am creating a very simple directory of wordpress users. I have extra fields set up through Metabox. All good so far.

I have created a loop that shows “cards” for each member. I want website visitors to be able to click on the card and find out more about that member.

I’ve looked around this forum and found a few ideas but nothing seems to work. As far as I understand it, the actual URL I need to get to is…

mydomain.com/author/userid

I have found {author_name:link} and have tried setting it up as an external URL link but that doesn’t get me to the end point either.

Can anybody help?

1 Like

Just done a bit more digging and according to the bricks academy the only author fields you have available are…

{author_name} – Returns the post author name {author_bio} – Returns the post-author biographical info
{author_email} – Returns the post author email {author_website} – Returns the post author website
{author_avatar}` – Returns the post author avatar as an image tag (text) or an image url (link)

I can’t use any of those to get to the author link I need, it needs an additional… {author_username}

Everything works
Screenshot_19


You can display everything related to the user/author

You misunderstand my problem.

I need to be able to get the link to the author archive from inside a query loop.

The problem is not displaying data on the author archive template. That works fine.

Do you need to get a list of the author’s posts or get a link to the author’s page?

I need to get a link to the author’s page.

So, you need to get on the page of the post a link to the page of the author of this post, right?

I have a page showing member cards in a query loop.

I need to link, from that member card, to the author’s page on the website.

The actual link is mydomain.com/author/xxx

Where “xxx” seems to be the WP username of the author.

The “xxx” is the bit I cannot get my hands on.

One more question. These cards are profiles of users who registered themselves?

upload this template here

Just curious. Did you get this solved?
I am in the same boat…

Yes, this is the link…

{echo:get_author_posts_url({wp_user_id})}

And then create a single author template of the type “Archive (Author)”

Took a stupid amount of time to solve this.

OMG, I love you, I’ve been looking for this solution for HOURS!

1 Like

It was ridiculously hard to find to be honest.

I’ve been trying to figure out this same thing. Can you show me how you set it up? I made a archive template, but I’m not getting {echo:get_author_posts_url({wp_user_id})} to work. It just links to the current page.

for future reference: Author Page Archive Link for the Current User - BricksLabs.

Thanks for responding Sridhar, but that link has the same code as what was already mentioned here. It’s just linking to whatever the current page is, not to the authors page. I’m not sure if a newer version of bricks changed that code or some setting I’ve already changed is messing with it, but its definitely not doing what your link says it should.

Can you share a sample URL where you are trying to set the user’s archive page link?

This is how I’m trying to set it up. It just reloads the current page. If I hover over the link it shows the current page’s URL in the bottom left. I had to take it down for the moment cause I can’t have it being wonky on live pages.

Hey Sridhar, I think I got it. I changed a few settings in rankmath, didn’t work, changed the settings back to what they were, and suddenly it worked, or seems to be anyway. Not sure if it was just a fluke or something.