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.
Enabling the module
Section titled "Enabling the module"Go to Polski > Modules and enable Product Authors (module ID: product_authors). The module has no settings.
The product_author taxonomy
Section titled "The product_author taxonomy"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 |
Managing authors
Section titled "Managing authors"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.
Display on the product page
Section titled "Display on the product page"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.
Display on the product listing
Section titled "Display on the product listing"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.
Author archive page
Section titled "Author archive page"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.
Schema.org Person
Section titled "Schema.org Person"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.
Admin column
Section titled "Admin column"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.
Querying by author
Section titled "Querying by author"WP_Query
Section titled "WP_Query"$query = new WP_Query([ 'post_type' => 'product', 'tax_query' => [ [ 'taxonomy' => 'product_author', 'field' => 'slug', 'terms' => 'jan-kowalski', ], ],]);REST API
Section titled "REST API"The taxonomy is registered with show_in_rest, so the WordPress REST API exposes the terms:
GET /wp-json/wp/v2/product_authorCSS styling
Section titled "CSS styling"| 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.
Troubleshooting
Section titled "Troubleshooting"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