How to Add Authors to WooCommerce Products

Authors Woocommerce

By default, WooCommerce products don't show the default “Authors” feature in WordPress.

The WooCommerce developers made this choice for a good reason. Posts, Pages and other content normally need an “author”. However, eCommerce products might have a “Vendor” or “Manufacturer”, but not often an “author”.

In this post, I'll show you how to make the Authors feature visible again in WooCommerce.


How to add authors to WooCommerce with a plugin

We're going to the use the PublishPress Authors plugin for this. Please read the documentation if you're unfamiliar with PublishPress Authors.

  • Install the “PublishPress Authors” plugin.
  • Activate the plugin.
  • Go to “Authors”, then “Settings”.
  • Check the box for “Products”.
Authors Woocommerce
Authors Woocommerce
  • Go to edit one of your WooCommerce products and you'll now see the “Authors” feature is available in the sidebar:
Woocommerce Authors
Woocommerce Authors

Other methods to add authors to WooCommerce

In a previous version of this blog post, we recommended a plugin called “Change Product Author for WooCommerce”. That plugin's page on WordPress.org had small code snippet you could use to add authors to WooCommerce.

The suggestion was to add this code to your theme’s functions.php file

if ( post_type_exists( 'product' ) ) {
add_post_type_support( 'product', 'author' );
}

Update: Unfortunately, that plugin and code seems to have stopped working in recent versions of WooCommerce. This alternative code may work for you.

Many custom post types don't have support for authors. Here's how to add authors to any custom post type.


How to Add More Than One Author to WooCommerce

One of our users asked if it was possible to add more than one author to WooCommerce. Yes, absolutely. In this situation, it made perfect sense because the user was selling books! Each WooCommerce product really did have authors!

  • Install the “Change Product Author for WooCommerce” plugin or use the code snippet above.
  • Install the PublishPress Authors plugin.
  • Go to Authors > Settings.
  • Use this guide to place a PublishPress Authors widget in your site's sidebar.
  • Under “Add to these post types”, select “Products”.
  • Click “Save Changes”.
  • Go and edit one of your WooCommerce products.
  • Select the authors of your product using the “Authors” box in the right sidebar. They do need to be users on your site, unless you use the Guest Authors feature in PublishPress Authors.
  • Publish your content and you'll see the product authors are now visible:

Get PublishPress Authors Pro and the other Pro plugins

Join PublishPress today and improve your WordPress publishing. You will get full access to all the PublishPress plugins, and our legendary support.


More WooCommerce Tutorials

Tags: , ,


Comments (5)

Leave a Reply

Your email address will not be published. Required fields are marked *

Professional publishing plugins for WordPress! Get PublishPress