SOLVED: {author_meta:id} not working

Hi, I’m trying to display a div within a post only for the author of that particular post.

My approach is a condition with dynamic data:
{wp_user_id} == {author_meta:id}

Unfortunately {author_meta:id} doesn’t give me the ID of the post’s author.

What am I doing wrong? Or is there a better approach?

Thank you!

Instead of {author_meta:id}, use {echo: get_the_author_meta(ID)}.

3 Likes

Thank you @Sridhar, I will use it like that. But according to Dynamic Data – Bricks Academy {author_meta:id} should be possible, right?

Yes. Hopefully, it will be fixed in the next version.

1 Like

Hi Johannes,
We’ve fixed this issue in Bricks 1.9.6, now available as a one-click update in your WordPress Dashboard.

Changelog: Bricks 1.9.6 Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse