SOLVED: Author dynamic tags not working on author archive

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

I added a comment on this thread but thought i should create my own thread since the OP seems to have gotten a solution to his problem.

UPDATE: Using the echo functions from this blog How to get author details in WordPress - Websparrow works perfectly, both editor and front-end

Hi Emmanuelson,
Thanks so much for your report!

As already mentioned here, the author tags work fine for me (without the need for custom code).

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?

Best regards,
timmse

1 Like

Details sent. Thank you

Found the issue, it was this plugin Simple Local Avatars – WordPress plugin that was causing the issue. Disabled it and all dynamic tags are working fine again. SOLVED

1 Like

I am actually having a similar issue (using Bricks 1.8.1). I have just created an author archive. The {author_name} and other similar dynamic data variables are not working in the front end but display in the Bricks editor fine.

Using the code element and echoing those functions works fine in the front end and Bricks Editor.

get_the_author_meta(ā€˜display_name’);

Using the {author_name} field works fine on single templates that display post data.

I have created an Archive template that has a condition set for Archive and Authors. I also have a query on the page that shows the last 10 posts by the author which works fine on the front end and in the Bricks editor.

I have deactivated several plugins like Slim SEO, Perfmatters, Metabox to see if they were causing the issues and they are not.

Any ideas @timmse ?

Once I get the basic fields working I plan on expanding the user fields to include some new ones using MetaBox.

I’ve added in the custom user fields from metabox without problems.

I’ve got caching disabled (since the site is currently being developed) so that is not the issue.

This reminds me of the issue I had before with archive templates not displaying dynamic data on the frontend

but obviously these fields {author_name} etc should be working…

BTW I have sent in a support ticket with more details about the site and admin access to check it out.

Hi Tom,
I can’t find any problem with the Author Archives In our test installation, so thanks for the credentials. We will have a look at it :v:

Hi @Tom ,

Stefan and I just found a replicable step :slight_smile:
We have added a potential fix code on your site.
Please can you help to check your site if the author dynamic tags working fine now?

Regards,
Jenn

Hi Jenn,

Yup author dynamic data seems to be working now and appears in both the front and back end for the author archive.

Was the fix a tweak to the actual Bricks Editor code?

Thanks

I have found a small issue with the fix. It only happens in the Bricks Builder. {author_name} and related fields that are not within a query (like the last 10 posts) seem to pull the author of the archive template itself (in this case Stefan Bricks) and not what the template settings populate content specifies. On the front end it works fine though.

@timmse Just making sure you saw my last reply about the small bug I found where in the Bricks Editor only it seems to be pulling the author name of the actual archive template. (see the above post for more info)

Hi Tom,

Thanks for the highlight about the populate Author doesn’t render correctly inside the builder.
Yup, noted on that, will be fixed together as well.

Regards,
Jenn

1 Like

Hi guys,
We’ve fixed this bug in Bricks 1.8.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

2 Likes