2012-11-03, 12:59:46
This topic is about the GetSimple Hierarchical Menus plugin, a simple plugin allowing you to display hierarchical page menus.
Installation
Download the latest version here, unzip the downloaded files and copy its contents to your plugins folder.
There are various template functions you can use.
displays a hierarchical menu of pages and can be used as a direct replacement for the get_navigation() function.
displays the top level menus with no child menus.
displays the child menus of the given page. Useful in sidebar.
displays a breadcrumb navigation bar (exactly like in default theme).
First parameter is current page slug.
Second is seperator between links. (default: bullet).
Third is boolean to include a "home" link. (default: true).
All functions can have a final parameter set to false that will return the menu html rather than display it.
Installation
Download the latest version here, unzip the downloaded files and copy its contents to your plugins folder.
There are various template functions you can use.
Code:
<?php get_hierarchical_navigation(get_page_slug(false)); ?>
Code:
<?php get_top_navigation(get_page_slug(false)); ?>
Code:
<?php get_child_navigation(get_page_slug(false)); ?>
Code:
<?php get_breadcrumb_navigation(get_page_slug(false), '', true); ?>
First parameter is current page slug.
Second is seperator between links. (default: bullet).
Third is boolean to include a "home" link. (default: true).
All functions can have a final parameter set to false that will return the menu html rather than display it.