Condition for When No Author is Associated with Post

I’m trying to make a badge appear on my layout in the event there is no author associated with the post. What type of condition would I use to achieve this?

I tried a few conditions, but none have worked so far.

Hello @santosfel5,

Thanks for writing in! A post, page, or any custom post item has always an author. That is when someone added that post, page, or any custom post item. Maybe you have a custom ACF or Post meta for your “author”. If the default display is “Unclaimed” when there is no Author, then you can use:
{{dc:post:meta key="your-key-here"}} IS NOT Unclaimed
{{dc:acf:post_field key="your-key-here"}} IS NOT Unclaimed

This is just my guess because I am not sure of your post data. If I can log in and check your post settings, maybe I can give you the exact condition.

Best Regards.

Thank you, I figured out a workaround for this.

I just set the conditions to:

Claimed badge to {{dc:author:display_name}} is not _________________
The Unclaimed badge is set to {{dc:author:display_name}} is ____________________

Hey @santosfel5.

We’re glad that you’re able to find a solution to your issue. If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

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