Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% if article.metafields.custom_fields["author"] != blank %}
{% assign id = article.metafields.custom_fields.author%}
{% for author in shop.metafields.custom_fields.authors %}
{% if author.identifier == id %}
<div class="custom-field custom-field__author custom-field__type--text-list">
<strong style="font-size: large">Meet {{ author.name }}</strong><br /><br />
{% if author.photo != blank %}
<div class="custom-field--value" style="float: left; margin-right: 15px;">
{% render 'cf-image' with image: author.photo, size: "150x100", crop: "center", format: 'pjpg', tag_class: "author-photo" %}
</div
{% endif %}
<div class="custom-field--value">
{{ author.bio }}
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
<br />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment