Hi,
I wanted to add a metadata to the blog author (since I wanted to add a section to each blog to display the Author’s bio) but I can’t see the Author in the Custom Data? Where should I add it?
Hi,
I wanted to add a metadata to the blog author (since I wanted to add a section to each blog to display the Author’s bio) but I can’t see the Author in the Custom Data? Where should I add it?
@j_adv21 hey, thanks for posting here.
i think best way to show a a section .
creat custom sections then put unter the autor condition:
{% if article.author %}
<–! section →
{% endif %}
OR create metadata then attach the bolgs metafields then use on custom section.
In a theme, article.author is a string, not an object, so you can’t add metafields to it.
I’d probably consider creating metaobjects for each author and then you can add a metafield to article to reference these metaobjects and use metaobject fields as dynamic sources.
Yes, I was thinking of the same solution but I couldn’t find the Author Metadata in the Custom Data