Create link to author page and list all posts by author using layout builder

The new layout builder is amazing!

I’ve used {{dc:author:display_name}} inside of a text field to display the author’s name. (below) I’d like for this to be a link to a page displaying all their posts. I know this was possible with some additional PHP, but wasn’t sure how to go about it with the latest version — or if this is already available.

I’ve created pages for each author and added these links into the user profile. Whether I’m on the right track remains to be seen. :wink:

Thank you!

Hello @WaggingLabs

Thanks for writing to us.

To link the author name to an author profile page. You can achieve it by using dynamic content for that you can use this dynamic content code {{dc:author:url}}. To link it by using the “Text element” your code would be like this.

<a href="{{dc:author:url}}">{{dc:author:display_name}}</a>

Hope it helps
Thanks

Thanks @prakash_s! Is there a way to assign a layout to that author page?

Disregard this question as I was able to create a custom layout >> Somewhat related, is there a way to add a widget area in a sidebar on an archive? The docs for layout builder appear to indicate a sidebar can only be added to single post layouts.

Hi @WaggingLabs,

You can assign any layout to the Author page through the condition attribute. There are two different conditions available for Any Author, another one is Specific Author.

And regarding the sidebar in archive layout, regretfully, currently there are no such options available.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.