Post Hierarchy Nav

Àpèjúwe

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Ìtumọ̀ Yorùbá: ’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

Àwọn ìdí

Plugin yìí pèsè 1 ìdí.

  • Hierarchy Nav Displays a hierarchical navigation tree of posts or custom post types.

Ìgbéwọlẹ̀

  1. Upload the post-hierarchy-nav folder to your /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Add the Post Hierarchy Nav block to any post or page.
  4. Configure post type, mode, and styling in the block inspector.

FAQ

Does it work with custom post types?

Yes! As long as your CPT is registered with 'hierarchical' => true and 'show_in_rest' => true.

How is the “Auto” mode determined?

It finds the top-level ancestor of the current page/post and renders its subtree.

Can I style the active item?

Yes! Use the “Active item CSS class” field in the Advanced panel (defaults to active).

Why require WordPress 6.3+?

The block uses modern Gutenberg APIs (core-data, EntityPicker, ServerSideRender) that are stable from WP 6.3 onward.

Where is the developer version hosted?

The developer version is available here.

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“Post Hierarchy Nav” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “Post Hierarchy Nav” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.0.0

  • Initial release