Post Hierarchy Nav is a lightweight Gutenberg block that renders clean, semantic navigation trees based on your existing post hierarchy. Perfect for documentation sites, knowledge bases, or any site using hierarchical content.
✨ Features
✅ Works with posts, pages, and any hierarchical custom post type
✅ Three display modes: All, Auto (current context), or Custom root
✅ Live preview via ServerSideRender — see changes instantly in the editor
✅ Optional child count badge (e.g., “Integrations 2”)
✅ Fully customizable CSS classes for root and active items
✅ Respects WordPress permissions and core data APIs
🎯 Use Cases
- Create auto-expanding documentation menus
- Build context-aware sidebars that highlight the current page’s branch
- Replace hardcoded menus with dynamic, maintainable trees
🔐 Privacy & Performance
- Zero tracking — no data collected, no external requests
- Lightweight — only loads when the block is used
- GDPR compliant by design