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
- Host: GitHub
- URL: https://github.com/yalogica/post-hierarchy-nav
- Owner: yalogica
- Created: 2025-11-09T15:37:13.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-09T15:49:06.000Z (8 months ago)
- Last Synced: 2025-11-09T17:28:29.423Z (8 months ago)
- Topics: gutenberg, typescript, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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