• Return to Content
  • Home
  • About
  • Member Area
    • WordPress Themes
    • WordPress Plugins
  • Tools & Resources
  • Code Snippets
  • Blog
Main Menu

WP Musketeer

Swashbuckling Online Business with WordPress

  • E-mail
  • Google+
  • RSS
  • Twitter

November 5, 2014

Add Description Below Products on WooCommerce Product Category Archive

(For the full post explaining the reasoning behind these code snippets see here.)

Add a “details” field to the Add New Product Category page

To get started, let’s add a text area to the product categories page. We’ll call it “details”. This lets us enter some detail about the product category as we create it. Because this form is quite narrow we won’t make it a full-on WYSIWYG visual editor. We’ll save that for in a moment.

Add a WYSIWYG “details” field to the Edit Product Category page

Next we’ll add the details field to the edit product category page. This time, because we’ve got more space, we’ll use a proper WordPress visual editor. That way you can use headings, blockquotes and include images and other media as if you were editing a page or post.

Save the details field content to the database

We need to save the details field when a product category is first added and after it has been edited.

Display the details field on the category archive page

Filed Under: Code Snippets, WooCommerce

Member Area
  • Privacy Policy
  • Terms and Conditions
  • Sitemap

Copyright © 2023 WP Musketeer · All rights reserved · WP Musketeer is a trading name of Moortor Design Ltd.

Registered in England and Wales · Company number 07951342 · VAT registration number 129768469