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...
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024