An open API service indexing awesome lists of open source software.

https://github.com/yalogica/post-hierarchy-nav


https://github.com/yalogica/post-hierarchy-nav

gutenberg typescript wordpress wordpress-plugin

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

**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