Automatically Hierarchic Categories in Menu

Description

Allows you to automatically / dynamically add hierarchical categories ( with sub-categories ) to WordPress navigation menus using shortcode.

HTML and CSS knowledge may be required depending on the theme.

Visit my blog for support request and feedback.

Please comment 💬, rate ⭐ and share 👍
Facebook
Twitter
LinkedIn
Pinterest
Tumblr
e-Mail

🪙 Scan via Binance App to send donation:
▄▄▄▄▄▄▄░░░▄░▄░░░▄░░░░▄░▄▄░▄▄▄▄▄▄▄
█░▄▄▄░█░▀░▀░▄█▄▀▄▀▄█▀░░▄░░█░▄▄▄░█
█░███░█░▀█▀░▀░░█▀░░░█▄█░▄░█░███░█
█▄▄▄▄▄█░█▀▄▀█▀▄░█▀█░█░█░▄░█▄▄▄▄▄█
▄▄▄▄▄░▄▄▄█▀█░░█▄▄░░▀░█▄▀░▄░▄░▄░▄░
▀▀▀▀▀░▄░█░█░▀▄░█░▄▀░█▀▄█▄█░███▀▄░
▄▀░█░█▄░░▄▄░█▄█▄▀▄█▀▄█▀▀▀▄█▄▄░██▀
█░▄░░░▄▀▄█░▄▄▄▄▄▀▄▀▀▄▀▄▄▄▄▀█▄█▀▄░
█▄░█▄█▄▀▀▄░█░░▄▄▀▄█▀░▄▄▀░░▀▄▄▄▀█▀
░▄██░█▄█░▀▄░▀▄░██▄█░█▀▄█▄█░▄█▄▀░▄
█▀░░▄░▄██▄█░█▀▀▄▄▄▄▀░░░▀░▄██░░░▄▀
█░░▄▀█▄▄▀▄░▄▄░░█▄▄▀░▄▀█▀█▄▀▀▄░▀██
█░█▀░█▄█▄▀▄█░░░▄▄░█▀▄▀░▀▄▄█▄▄█░▀▀
▄▄▄▄▄▄▄░█▀▄░▀█▄▄░▄▄░█▀░▄█░▄░█░▀▄░
█░▄▄▄░█░▄░▀░█▀▄▄▀░▄▀░████▄▄▄██░░█
█░███░█░█░█▄▄░░▀▄▄░▀▄▀▀░▄▄▄█░▀▀▀░
█▄▄▄▄▄█░█░░█░░▀▄░░▀▀▄▄▀██▀▄░▀▄██▀

Screenshots

  • Define post categories
  • Open input area
  • Add shortcode to menu
  • Add shortcode to menu on "Block Editor - Beta"
  • Twenty Nineteen 1.8 on WordPress 5.0.2
  • Twenty Twenty 1.6 on WordPress 5.0.2
  • Twenty Twenty-One 1.1 on WordPress 5.6
  • Astra 3.0.1 on WordPress 5.6
  • PopularFX 1.2.0 on WordPress 5.6
  • Twenty Twenty-Two 1.2 on WordPress 6.0.1
  • Twenty Twenty-Three 1.0 "Block Editor - Beta"
  • Twenty Twenty-Three 1.0 on WordPress 6.1.1
  • Enwoo (EnvoThemes) on WordPress 6.1.1

Installation

  1. Add the plugin’s folder in the WordPress’ plugin directory, or install the plugin through the WordPress plugins screen directly..
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.

Usage

  1. Go to Apperarance -> Menus
  2. Click ‘Screen Options’ on the top right
  3. Check and open ‘Auto Category Shortcode’ option
  4. Type your shortcode with parameters, e.g. [autocategorymenu hide_empty=”0″]

Reviews

February 27, 2023 1 reply
When we disable the woocommerce hierarchical option, the plugin still generates the category links as hierarchical mode. I think on line 248 of class-auto-hierarchic-category-menu.php file, the slug param must be passed as "$slug" and not "$slug.'/'.$category->slug"
July 18, 2022 1 reply
Well this was a nice discovery, a gem in the rough it seems. Thanks Dev for this lively addon. Does exactly what it says it does, and well. Works well with Custom Post types too. Cheers
Read all 5 reviews

Contributors & Developers

“Automatically Hierarchic Categories in Menu” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

Version 2.0.1

  • Edited: Info text
  • Bumped up “Tested up to: 6.2”

Version 2.0.0

  • Added: New option, add item id to menu item class
  • Added: Taxonomy list on admin panel
  • Added: Expandable with paid Pro version
  • Bumped up “Tested up to: 6.1.1”

Version 1.02

  • Added: Null array item handler for base category path in PHP
  • Fixed: Broken support link
  • Bumped up “Tested up to: 6.0.1”

Version 1.01

  • Bumped up “Tested up to: 5.9”

Version 1.00

  • Initial version released