Skip to main content
Tutorial3 min read

Displaying Custom Author Names Using Metafields

Learn how to display custom author names for blog posts using Shopify metafields to feature guest bloggers

Driss OUDMINE
Driss OUDMINE
Shopify Theme & App Developer · hello@doudmine.com
Displaying Custom Author Names Using Metafields
Figure 1: Production architecture diagram for tutorial optimization
Executive Summary & Key Architectural Rules
  • Access to Shopify admin panel
  • Ability to edit theme code
  • Metafields Guru app (or similar metafields management app)
  • In your duplicated theme, navigate to the Sections folder
  • Locate the article-template.liquid file

By default, Shopify themes display blog post authors based on staff admin accounts. However, you can customize the article template to display any author name using metafields. This guide shows you how to feature guest bloggers with custom author names.

In e-commerce, every 100 milliseconds of latency during the checkout transition directly reduces conversion probability by up to 7%. Code written natively for the Liquid runtime always beats client-side script injections.

Access to Shopify admin panel Ability to edit theme code Metafields Guru app (or similar metafields management app)

Step-by-Step Instructions

Create a Theme Backup

From your Shopify admin, go to Online Store > Themes, and duplicate your active theme for safe editing.

Update the Article Template

In your duplicated theme, navigate to the Sections folder Locate the article-template.liquid file Replace the existing author display code:

With the following code:

Update the Blog Template

In the same Sections folder, locate the blog-template.liquid file Replace the existing author display code:

With the following code:

Configure Metafields for Custom Authors

Install the Metafields Guru app or similar metafields management app Open the app and select Blogs & Posts Choose the blog post where you want to feature a guest author Click the Create Metafield button In the form: - Set the Key to name - Set the Namespace to author - Enter the guest author's name in the value field Click Save

Once configured, the custom author name will appear on the blog post instead of the default staff account name.

The metafields approach allows you to have different author names for each blog post Make sure to test the changes on your development theme before applying to the live theme If your theme structure differs, locate the appropriate template files for articles and blog listings

For additional support, feel free to reach out via the contact form.

Implementation Snippets (4)

Drop these directly into your Shopify theme, in the order shown.

Complete code from the tutorial
section.liquid
{% if article.metafields.author.name %}
<span class="meta-sep">&#8226;</span>
{{ article.metafields.author.name }} {% else %}
<span class="meta-sep">&#8226;</span>
{{ article.author }} {% endif %}
script.js
{% if section.settings.article_author_enable %}
   <span class="meta-sep">&#8226;</span>
   {{ article.author }}
{% endif %}
section-2.liquid
{% if article.metafields.author.name %}
<span class="meta-sep">&#8226;</span>
{{ article.metafields.author.name }} {% else %}
<span class="meta-sep">&#8226;</span>
{{ article.author }} {% endif %}
script-2.js
{% if section.settings.blog_author_enable %}
   <span class="meta-sep">&#8226;</span>
   {{ article.author }}
{% endif %}

Pre-Deployment Safety Checklist for Shopify Merchants

1.Always duplicate your live theme to create a staging preview before editing Liquid snippets.
2.Test all checkout progression hooks with test credit card credentials in sandbox mode.
3.Audit your Core Web Vitals on Google PageSpeed Insights after deploying to verify 0 layout shifts.
Driss OUDMINE
Written by

Driss OUDMINE

Shopify Theme & App Developer specializing in Online Store 2.0 themes, custom Shopify apps, Shopify APIs (GraphQL/REST), and store speed optimization. Not available for new opportunities at this moment.

hello@doudmine.com
Previous Article
Customize & add product badges
Next Article
How to Add an Accordion to Your Minimal Theme
Get in Touch · Full-Time Roles

Let's discuss how I can contribute to your team.

I am not available for new opportunities at this moment. You can still reach out for general questions about my work and articles.

Direct Email

hello@doudmine.com
One-click clipboard copy:

Candidate Snapshot:

Fast Response (Within 24 Hours)

I personally monitor my inbox and respond to technical recruiters and engineering managers promptly.

Work Authorization & Setup

Ready for remote full-time employment via Deel, Oyster, Remote.com, or direct employment.

Flexible Notice Period

Able to join team sprints within 1–2 weeks upon agreement.