This plugin helps you to embed a simple hierarchical navigation menu and breadcrumbs into your site. Simply place the corresponding widgets in your sidebars and you’re all set. It’s also possible to configure the widgets to manipulate the appearance of the menu or the breadcrumbs.
You can download the plugin here.
Hierarchical Navigation menu widget
Drag the Hierarchical Navigation widget into a sidebar and change the configuration as you see fit. To give you a better understanding of the different options the following table lists their purpose:
Option | Description |
---|---|
title | The title that appears above the menu; e.g. Pages or Navigation. |
start_id | Instead of showing all the pages starting from the root (id is 0) you can specify an ID here which will be used as the root of the menu, i.e. showing just the specified sub tree of your page hierarchy. |
depth | Sets the maximum depth of the menu hierarchy. |
exclude | Excludes the IDs – comma separated list – from the navigation hierarchy. |
title_li | These tags will be placed around the title. Read more about title_li on this page. |
Breadcrumbs widget
As with the hierarchical navigation menu widget you can just place this widget into a sidebar and adjust the options. Here’s an overview of the settings:
Option | Description |
---|---|
title | The text that appears in front of the breadcrumbs, e.g. You are here. |
separator | This will be placed between the breadcrumbs. |
top_title | In case your homepage displays an overview of your posts, we’ll use this text in front of the breadcrumbs. |
Great widget, just what I need!
thank you very much. this plugin very useful for me 🙂
Hey, this looks great, exactly what I need, except for one detail: on a multilingual site with polylang, the correct hierarchies are shown, but both languages! This is not the case for the original wordpress pages widget. Do you think maybe this compatibility could be added in a future version? that would be great!
Hi Tristan,
unfortunately, I have never used polylang and don’t know any of the inner workings of the plugin so I wouldn’t consider adding a compatibility update to my plugin; I haven’t got the time right now to check this out in more detail myself.
But if you want to give it a go yourself – or another developer you know – you should start tweaking the SQL query in the function
hiernav_get_postpage_ids
so it just selects the posts associated with the current language.ok, thanks for the idea!