Skip to content

The source code of a WordPress plugin that displays dynamic, hierarchical navigation trees for posts, pages, and custom post types directly in the Gutenberg editor

Notifications You must be signed in to change notification settings

yalogica/post-hierarchy-nav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

The source code of a WordPress plugin that displays dynamic, hierarchical navigation trees for posts, pages, and custom post types directly in the Gutenberg editor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published