الوصف
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.
التنصيب
- Download
menu-breadcrumb.zipand extract - Upload the
menu-breadcrumbfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
<?php if ( function_exists( 'menu_breadcrumb') ) { menu_breadcrumb( 'my-menu-id' ); } ?>in your templates where you want the breadcrumb to appear
الأسئلة المتكررّة
-
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 ' » ', // separator between each breadcrumb '<p class="menu-breadcrumb">', // output before the breadcrumb '</p>' // output after the breadcrumb ); } ?> -
More documentation?
-
Can I contribute?
المراجعات
3 سبتمبر، 2016
As I see, it works with WP 4.2.2. The Theme is being developed, so i could not find any bugs so far.
المساهمون والمطوّرون
“Menu Breadcrumb” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.
المساهمونترجمة ”Menu Breadcrumb“ إلى لغتك.
مُهتم بالتطوير؟
تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.
سجل التغييرات
1.0.3
- Add filter to allow custom breadcrumbs. Props benjaminpick
- If empty breadcrumbs he shouldn’t show $before and $after. Props benjaminpick
- Tested up to WordPress 6.9
1.0.2
- Added a
menu_breadcrumb_levelproperty 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
