Skip to content

Product Authors

The Product Authors module in Polski for WooCommerce adds a product_author taxonomy for creators such as writers, designers or artists. Assigned authors appear on the product page, in product listings and as Schema.org Person in the product's structured data. It suits bookstores, publishers and galleries, and is off by default.

Go to Polski > Modules and enable Product Authors (module ID: product_authors). The module has no settings.

The module registers a non-hierarchical product_author taxonomy on the product post type, so it behaves like product tags. Each author is a term with the standard WordPress fields:

  • Name: first and last name or pseudonym
  • Slug: the URL-friendly version of the name
  • Description: the author's bio, shown on the archive page if your theme prints term descriptions
Registration argument Value
hierarchical false
show_admin_column true
rewrite slug product-author (without the front base)
show_in_rest true
query_var true

Authors are in Products > Authors. You can add, edit and delete them like product tags. On the product edit screen the Authors box works like the tags box: type a name to assign an existing author or create a new one.

On the single product page the authors are printed below the product title (hook woocommerce_single_product_summary, priority 6) as "Author: " followed by each name, linked to its archive page and separated by commas.

In product loops (shop, category, search results) the author names are printed as plain text below the product title (hook woocommerce_after_shop_loop_item_title, priority 3). In block-based product collections the plugin adds the same line before the Product Price block.

Each author has an archive page at yourstore.com/product-author/jan-kowalski/, listing the author's products. The theme renders it as a WooCommerce product taxonomy archive.

The module adds the authors to WooCommerce's own Product JSON-LD through the woocommerce_structured_data_product filter, as the author property:

"author": {
"@type": "Person",
"name": "Jan Kowalski",
"url": "https://yourstore.com/product-author/jan-kowalski/"
}

A product with several authors gets an array of Person objects. A product without authors gets no author property.

Because the taxonomy is registered with show_admin_column, WordPress adds an Authors column to Products > All products. Each name links to the product list filtered by that author.

$query = new WP_Query([
'post_type' => 'product',
'tax_query' => [
[
'taxonomy' => 'product_author',
'field' => 'slug',
'terms' => 'jan-kowalski',
],
],
]);

The taxonomy is registered with show_in_rest, so the WordPress REST API exposes the terms:

GET /wp-json/wp/v2/product_author
Class Where
.polski-product-authors Author line on the single product page
.polski-product-author-loop Author line in product listings

Both elements carry inline font-size, color and margin styles. Override them in your theme with more specific selectors or !important.

The author does not display on the product: check whether the theme runs the woocommerce_single_product_summary hook. Some themes override WooCommerce templates.

The author page returns a 404: go to Settings > Permalinks and click Save changes (flush rewrite rules).

Can a product have more than one author?

Section titled "Can a product have more than one author?"

Yes. All assigned authors are shown, separated by commas, and the structured data gets one Person per author.

Does the module add author photos?

Section titled "Does the module add author photos?"

No. An author is a plain taxonomy term with a name, slug and description.

Where does the author appear in Google's structured data?

Section titled "Where does the author appear in Google's structured data?"

As the author property of the WooCommerce Product graph on the product page. The module does not print a separate JSON-LD block.

Report issues: github.com/wppoland/polski/issues

This page is for informational purposes only and does not constitute legal advice. Polski for WooCommerce is open source software (GPLv2) provided without warranty.