Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
...consider creating metaobjects for each author...
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025