Sale! Tested High rating Documented

Related Categories for WooCommerce

(3 customer reviews)

From: $39.99 / year

Add “Related categories” section to single product page and/or archives page in WooCommerce.

$39.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$99.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
Clear

Related Categories for WooCommerce plugin lets you add “Related categories” section (similar to standard “Related products” section) to single product page and/or archives page in WooCommerce.

Related Categories for WooCommerce - Frontend Example
Related categories on frontend.

Main Features

  • Automatically add “related categories” section to the single product pages and/or to shop pages.
  • Set categories limit (i.e. number of categories).
  • Set number of columns.
  • Sort categories by name, ID, random, count, etc.
  • Automatically relate categories by siblings, parents, children, etc.
  • Set position for the “related categories” section.
  • Customize templates, e.g. set header, footer and item HTML templates.
  • Optionally display related categories with a widget and/or with a shortcode.
  • Manually relate categories on per product, per product category, per product tag and/or per product custom taxonomy (e.g. product brands) basis.
  • And more…

Plugin settings are located in “WooCommerce > Settings > Related Categories”.

General Options

Related Categories for WooCommerce - General Options

Display on Single Product Page/Archives Page
Enables/disables “Single” and “Archives” sections.
Default: Single: yes; Archives: no
Limit
The number of categories to display.
Default: 4
Columns
The number of columns to display.
Default: 4
Hide empty
Hide/show empty categories.
Default: yes
Order by
If you want to order by the ids you specified then you can use “None”. “Count” option will sort categories as when sorted by the “Count” column in “Products > Categories”. Possible values: Name; ID; Slug; Menu order; None; Random; Count.
Default: Name
Order
States whether the category ordering is ascending or descending, using the method set in “Order by”. Possible values: Ascending; Descending.
Default: Ascending

Relate Options

Related Categories for WooCommerce - Relate Options

Siblings
Enable this if you would like to display all categories with the same parents (i.e. siblings).
Default: yes
Siblings: Include grandparents
Enable this if you would like to include category grandparents’ children as well.
Default: yes
Siblings: Include top-level
Enable this if you would like to include top-level (i.e. zero) category in (grand)parents.
Default: no
Siblings: Include grandchildren
Enable this if you would like to include (grand)parents’ grandchildren as well.
Default: yes
Parents
Enable this if you would like to display all the parent categories.
Default: yes
Parents: Include grandparents
Enable this if you would like to include category grandparents as well. If disabled will always show single parent category only.
Default: yes
Children
Enable this if you would like to display all the child categories.
Default: yes
Children: Include grandchildren
Enable this if you would like to include category grandchildren as well.
Default: yes
Current
Enable this if you would like to display all the current categories.
Default: no
Per category
This will add “Related categories” settings section to each category edit page (in “Products > Categories > Edit category”).
Default: no
Per tag
This will add “Related categories” settings section to each tag edit page (in “Products > Tags > Edit tag”).
Default: no
Per custom taxonomy
This will add “Related categories” settings section to each custom taxonomy edit page. Set as comma separated taxonomy slug list, e.g.: product_brand,product_color.
Default: None
Per product
This will add “Related categories” meta box to each product edit page (in “Products > Edit product”). This option is available in “Single” section only.
Default: no
Per product: Override
Choose if you want categories to be overridden by “Per product” settings or merged with them.
Default: yes

Related Categories for WooCommerce - Per Product Options

Position Options

Related Categories for WooCommerce - Position Options

Position
Possible values in Single: Inside single product summary; Before single product summary; After single product summary; Disable. Possible values on Archives: Before main content; Before shop loop; After shop loop; After main content; Disable. “Disable” position can be set if you are going to use [alg_wc_related_categories_single] or [alg_wc_related_categories_loop] shortcode instead.
Default: Single: After single product summary; Archives: After shop loop
Position order (i.e. priority)
Moves section inside the “Position”.
Default: Single: 21; Archives: 9
Widget
This will add “Related Categories: Single Product Page” or “Related Categories: Archives” widget to “Appearance > Widgets”.
Default: no
To place related categories section on single product page before the standard related products section, select “After single product summary” for “Position” and “19” for “Position order”. To place it after the related products section, set “21” for “Position order”.

Here is the table of standard position on single product page priorities in WooCommerce:

Position Existing/known WC hooks and priorities
Before single product summary
Show product sale flash 10
Show product images 20
Inside single product summary
Title 5
Rating 10
Price 10
Excerpt 20
Add to cart 30
Meta 40
Sharing 50
After single product summary
Output product data tabs 10
Upsell display 15
Output related products 20

Template Options

Related Categories for WooCommerce - Template Options

Header
Frontend header template.
Default:

<section class="related categories">
<h2>Related categories</h2>
Footer
Frontend footer template.
Default:

</section>
Template type
Possible values: Default; Custom.
Default: Default
Template type: Custom
Ignored, unless “Template type” option is set to “Custom”. Available placeholders:

  • %category_name%,
  • %category_description%,
  • %category_count%,
  • %category_link%,
  • %category_image_link%,
  • %column_nr%,
  • %category_id%,
  • %category_slug%,
  • %category_image_id%.

Default: None
Template type: Custom: Glue
Ignored, unless “Template type” option is set to “Custom”.
Default: None
Custom template example (with “Glue” set to  | ):

<a href="%category_link%" title="%category_name%">%category_name%</a>
You can use HTML and/or shortcodes in Templates. For example, if you need to translate section heading for the WPML or Polylang, you can use [alg_wc_related_categories_translate] shortcode, e.g.:

[alg_wc_related_categories_translate lang="DE" lang_text="Verwandte Kategorien" not_lang_text="Related categories"]

or in more complex form:

[alg_wc_related_categories_translate lang="DE"]Verwandte Kategorien[/alg_wc_related_categories_translate][alg_wc_related_categories_translate not_lang="DE"]Related categories[/alg_wc_related_categories_translate]

Image Options

Related Categories for WooCommerce - Image Options

Image size
Registered image size name.
Default: woocommerce_thumbnail
Placeholder image
Enter attachment ID or URL to an image. Categories with no image will use this. Ignored if empty, i.e. default placeholder image will be used.
Default: None
Remove image
Ignored, unless “Template Options > Template type” option is set to “Default”.
Default: no

Advanced Options

Related Categories for WooCommerce - Advanced Options

Hide "Related products"
Hides standard WooCommerce “Related products” section on single product pages.
Default: no

Multi-language Options

Related Categories for WooCommerce - Multi-language Options

Multi-language
Use the default language product/term ID instead of the translated one. Affects “Per category”, “Per tag”, “Per custom taxonomy” and “Per product” settings. Possible values: Disabled; WPML; Polylang.
Default: Disabled

3 reviews for Related Categories for WooCommerce

  1. sergio pasotti (verified owner)

    simple and useful.
    great assistance for both plugin improvements and help.

  2. Didier Azibert (verified owner)

    Very useful plugin. It helps manage the display of categories on archives and product pages and to choose which ones to display with several options. It’s even possible to choose a specific hook. And Tom Anbinder has been very helpful in adding a hook in his plugin that I needed and in helping me with my page builder.
    I highly recommend this plugin and more generally Tom’s seriousness.

  3. jacob maymudes (verified owner)

    Plugin is simple. It adds related categories to the single product page and the archive category pages. I have granular control with selecting individual categories as well as the related categories under the same hierarchy.

    Very Quick with responses, fixes and feature additions. Thank you!

Add a review

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

Free version

This plugin is a premium version of free "Related Categories for WooCommerce" plugin.

Changelog

1.9.3 - 14/11/2022

  • WC tested up to: 7.1.
  • Tested up to: 6.1.
  • Readme.txt updated.
  • Deploy script added.

1.9.2 - 13/04/2022

  • Dev - Single - Position Options - "Before single product" and "After single product" positions added.
  • Tested up to: 5.9.
  • WC tested up to: 6.4.

1.9.1 - 15/11/2021

  • Dev - Developers - alg_wc_related_categories_single_product_category_ids filter added.
  • Dev - Settings - Descriptions updated.
  • WC tested up to: 5.9.

1.9.0 - 22/09/2021

  • Fix - Possible PHP parse error fixed.
  • Dev - All admin settings input is properly sanitized now.
  • Dev - Plugin is initialized on the plugins_loaded action now.
  • Dev - Code refactoring.
  • WC tested up to: 5.7.
  • Tested up to: 5.8.

1.8.1 - 06/05/2021

  • Fix - Template Options - Template type - Custom - "Hide empty" option fixed.
  • WC tested up to: 5.2.

1.8.0 - 16/03/2021

  • Fix - Frontend - output_related_categories_single() - global $product removed.
  • Dev - Advanced - "Transients" options added.
  • Dev - Archives - Relate Options - Current - "Always show first" option added.
  • Dev - Archives - Template Options - Template type: Custom - %is_active% placeholder added.
  • Dev - Archives - Advanced - "Visibility" option added. Same option added to the "Related Categories: Archives" widget settings as well.
  • Dev - Widget - 'Override "Relate Options" in widget settings' option added.
  • Dev - Widget - Template Options - Default values updated.
  • Dev - Widget - Settings restyled (section titles added).
  • Dev - Settings - Relate Options - Section split into "Relate Options" and "Relate Manually".
  • Dev - Settings - Descriptions updated.
  • Dev - Settings - alg_wc_related_categories_after_save_settings action added.
  • Dev - Code refactoring.
  • WC tested up to: 5.1.
  • Tested up to: 5.7.

1.7.0 - 17/01/2021

  • Fix - Image Options - Image size - Was applied only if the "Placeholder image" option was not empty. This is fixed now.
  • Fix - Loading "per product" and "per category" settings only if section ("Single" or "Archives") is enabled.
  • Dev - Relate Options - "Per tag" option added.
  • Dev - Relate Options - "Per custom taxonomy" option added.
  • Dev - Position Options - "Widget" option added.
  • Dev - Template Options - "Template type", "Template type: Custom" and "Template type: Custom: Glue" options added.
  • Dev - Image Options - "Remove image" option added.
  • Dev - Shortcodes - Atts are now customizable in [alg_wc_related_categories_single] and [alg_wc_related_categories_loop] shortcodes.
  • Dev - Localization - load_plugin_textdomain() moved to the init action.
  • Dev - Admin settings descriptions updated.
  • Dev - Code refactoring.
  • Dev - Developers - alg_wc_related_categories_single and alg_wc_related_categories_loop filters added.
  • WC tested up to: 4.9.

1.6.0 - 17/12/2020

  • Dev - Advanced - "Multi-language" options added.
  • Dev - Settings - Order by - Description updated.
  • Dev - Code refactoring.
  • Dev - Free plugin version released.

1.5.0 - 14/12/2020

  • Dev - General Options - Order by - "Count" option added.
  • Dev - Image Options - "Image size" option added.
  • Dev - Image Options - "Placeholder image" option added.
  • Tested up to: 5.6.
  • WC tested up to: 4.8.

1.4.0 - 17/04/2020

  • Fix - Settings - Per product - Bug (when empty "Categories" value is not being saved) fixed.
  • Dev - Relate Options - Siblings - "Include grandparents" option added (defaults to yes).
  • Dev - Relate Options - Siblings - "Include top-level" option added (defaults to no).
  • Dev - Relate Options - Siblings - "Include grandchildren" option added (defaults to yes).
  • Dev - Relate Options - Children - "Include grandchildren" option added (defaults to yes).
  • Dev - Relate Options - Parents - "Include grandparents" option added (defaults to yes).
  • Dev - Single - Advanced Options - 'Hide "Related products"' option added.
  • Dev - Settings - Restyled (show_if_checked properties added).
  • Dev - Settings - "Reset settings" notice updated.
  • Dev - Admin action link description updated.
  • Dev - Code refactoring.
  • Requires at least: 4.7.
  • WC tested up to: 4.0.
  • Tested up to: 5.4.

1.3.3 - 19/02/2020

  • Dev - get_related_categories_single() - Additional $product safe checks added (produced log errors on some servers).

1.3.2 - 31/01/2020

  • Fix - Relate Options - Siblings - Current category removed.
  • Dev - [alg_wc_related_categories_single] and [alg_wc_related_categories_loop] shortcodes added (and "Disable" option added to "Position" in both single and archives settings).
  • Dev - Admin settings descriptions updated.

1.3.1 - 30/01/2020

  • Dev - Archives - Position - "Before main content" and "After main content" positions added.

1.3.0 - 22/01/2020

  • Dev - "Archives" options section added.
  • Dev - "General" options section renamed to "Single".
  • Dev - "Plugin enabled" option removed.
  • Dev - Code refactoring.
  • WC tested up to: 3.9.

1.2.0 - 21/01/2020

  • Dev - Relate Options - "Per category" option added.
  • Dev - Relate Options - Per product - "Override" option added.
  • Dev - Code refactoring.

1.1.0 - 03/01/2020

  • Dev - Code refactoring.
  • Dev - Admin settings descriptions updated.
  • WC tested up to: 3.8.
  • Tested up to: 5.3.

1.0.0 - 13/05/2019

  • Initial Release.