该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Menu Breadcrumb

描述

Breadcrumbs are often generated from Page structure, but in a world of Custom Post Types that doesn’t always work. Menu Breadcrumb uses your WordPress Menu to generate a breadcrumb trail based on the current page.

View on GitHub!

安装

  1. Download menu-breadcrumb.zip and extract
  2. Upload the menu-breadcrumb folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Place <?php if ( function_exists( 'menu_breadcrumb') ) { menu_breadcrumb( 'my-menu-id' ); } ?> in your templates where you want the breadcrumb to appear

常见问题

How do I output a breadcrumb trail?

Add the following to your theme template where you would like to output the breadcrumb:

<?php
    if ( function_exists( 'menu_breadcrumb') ) {
        menu_breadcrumb(
            'main',                             // Menu Location to use for breadcrumb
            ' &raquo; ',                        // separator between each breadcrumb
            '<p class="menu-breadcrumb">',      // output before the breadcrumb
            '</p>'                              // output after the breadcrumb
        );
    }
?>

More documentation?

Of course! https://github.com/jchristopher/menu-breadcrumb

Can I contribute?

Of course! https://github.com/jchristopher/menu-breadcrumb

评价

2016 年 9 月 3 日
As I see, it works with WP 4.2.2. The Theme is being developed, so i could not find any bugs so far.
阅读所有2条评价

贡献者及开发者

“Menu Breadcrumb” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Menu Breadcrumb”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.2

  • Added a menu_breadcrumb_level property to each breadcrumb object

1.0.1

  • Fixed an issue where the Menu wasn’t properly retrieved from the location

1.0.0

  • Initial release