WP Manifestindependent plugin directory
manifest / content / cgit-wp-breadcrumb-nav-menu

Castlegate IT WP Breadcrumb Nav Menu archived

Simple breadcrumb navigation for WordPress when using WordPress Nav Menus

by Castlegate IT · github.com/castlegateit/cgit-wp-breadcrumb-nav-menu · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/castlegateit/cgit-wp-breadcrumb-nav-menu/archive/refs/heads/master.zip

Readme

Castlegate IT WP Breadcrumb Nav Menu

Extends the Castlegate IT WP Breadcrumb plugin to use a WordPress navigation menu for page structure instead of the underlying page hierarchy. Usage is similar to Cgit\Breadcrumb, but the constructor requires an additional argument that specifies the name, ID, slug, or location of the navigation menu:

$crumb = new Cgit\BreadcrumbNavMenu($menu, $args = []);

For backwards compatibility, the plugin also provides a function for rendering a breadcrumb navigation, equivalent to the render method provided by the parent Cgit\Breadcrumb class:

$foo = cgit_breadcrumb_nav_menu($menu, $sep, $home, $index);

License

Released under the MIT License. See LICENSE for details.

Read the full README on GitHub →