SOLVED: Author archive - Dynamic data of author's is not working correctly

Bricks Version: 1.5 Beta
Browser: Chrome 90

I am building a template for author’s archive using the latest beta. I am using Dynamic data to populate with content and it seems something get messed up with dynamic data for authors (website.com/author/john.doe)
If I use any of these dynamic data: {author_name}, {author_bio}, {author_avatar} and so on, it shows the values of another user and not the actual author’s details.

This is the structure in Bricks builder:

This is the user profile filled up with content:

And this is what it shows when i visit website.com/author/john.doe

Please could you take a look? Thanks!

Hi Istvan,
Thanks so much for your report!

I was able to reproduce the issue and added it to our bug tracker.

Best regards,
timmse

1 Like

Can I ask if there is an update on this?
I’m struggling to create an author archive and not sure if because of this or if I’m doing something wrong.
Can I ask what I am supposed to query to display the post from this author only (from a CPT)?
Thanks a lot in advance

Hey Jo,
The task is still in progress.

If you are in the Author Archive template, you can create a simple post query. This should only show the posts of the respective author.

Hi, thanks for your answer, this doesn’t show only the posts (custom post type in that case) from this author unfortunately, this is where I’m really struggling to understand why!

Hmm, it does in my case :thinking:
I think it’s best to open a new thread and describe everything that matters related to your problem :slight_smile:

Also ran into this problem.
On the author’s page, displaying information about the author seems to be the only way so far, at least for me

<?php
 
$user_email = get_the_author_meta('user_email');
$user_nicename = get_the_author_meta('user_nicename');
$display_name = get_the_author_meta('display_name');
$user_firstname = get_the_author_meta('user_firstname');
$user_lastname = get_the_author_meta('user_lastname');
echo $user_email. '<br />';
echo $user_nicename. '<br />';
echo $display_name. '<br />';
echo $user_firstname. '<br />';
echo $user_lastname. '<br />';

or just
echo get_the_author_meta('user meta data');
?>

my decision

Hi guys,
We’ve fixed this bug in Bricks 1.7.2, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

Best regards,
timmse

1 Like

What filter does bricks use to pull the avatar when using {author_avatar} I added a CPT field to add a image to override the gravatar all working fine but can’t use {author_avatar} does it use the get get_avatar or what filter is used?

assets/includes/integrations/dynamic-data/providers/provider-wp.php

@timmse I am on the latest 1.8 but facing same issue. In the editor, it shows {author_name} and {author_avatar} for the author selected at template settings > Populate content but doesnt show content of {author_bio} even in the editor. On the front end, example.com/author/john, none of the dynamic data({author_name}, {author_avatar}, {author_bio}) shows for the current author.

This is the conditions
image

Hey,
For me, everything is displayed correctly.

Would you be so kind as to send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase?