Showing author in product list for bookstore

I am creating an online bookstore. When I list products in a collection page, I need to show the author. There doesn’t seem to be a way to add extra custom field to a product in the Shopify admin GUI.

Is the only way to do this to use an app? Or is there code I can write in my theme?

Here are 2 ways I’ve done something like that:

  1. Add a piece of code in the product description that won’t show on the site. For example:

Then you can use Liquid code to extract that name and show wherever you’d like, example:

{% assign getAuthor = article.content | split: '' %}

Author: {{ author }}

  1. You can use an app to edit product metafields, just search “product metafields app”, there are a bunch.

Then you use Liquid to show the metafield, for example you might do something like this:


Author: {{ product.metafields.author.name }}

If you’re not familiar working with Liquid or metafields, here’s the documentation: https://shopify.dev/docs/themes/liquid/reference/objects/metafield