Hi developer,
I am using “Education Hub” theme.
When I try to create the breadcrumb for all pages by inserting the following code in content-page.php, no breadcrumb is shown on any page:
<?php if ( function_exists( ‘menu_breadcrumb’) ) { menu_breadcrumb( ‘main’ ); } ?>
I would like to show the breadcrumb according to the primary menu.
I have ever tried to change from “main” to “primary-menu”, but it does not work.
I would appreciate if you could fix the bug.
Thanks a lot for your help.
Best regards,
Giny
Hi there!
Is it possible to make the last breadcrumb <strong>
?
i installed the plugin and added :
<?php if ( function_exists( 'menu_breadcrumb') ) { menu_breadcrumb( 'my-menu-id' ); } ?>
to my theme but nothing show up (also inside the “view source”)
]]>Hi there
More of a feature request than a request for support. How about adding in an option to include a “Home” link to start the breadcrumb trail? I can hardcode one into the function all by adding it to the ‘before’ value but that’s not a great solution (it messes up the data-vocabulary declaration).
What do you think?
]]>Thanks for this plugin!!! Kind Regards
]]>I have tried all sorts of code to try and get this to work…
I have entered my Location for my main menu which is Primary, and also tried other ID’s like 254 which is my main menu id, also tried Primary Menu, Main Menu, primary, primary menu, main menu, primary-menu, main-menu and nothing works.
]]>Hi,
I’m having problems getting this plugin working. I have a main menu assigned Top_Nav and the location is ‘Primary Menu’. I pasted the relevant code (see below) into my page.php file but the pages don’t show the breadcrumbs.
<?php if ( function_exists( ‘menu_breadcrumb’) ) { menu_breadcrumb( ‘Primary Menu’ ); } ?>
I think it maybe the location thats wrong but I cant find any other reference to the menu location. On the Menu setup screen the only reference to location is ‘Primary Menu’??
I’m not sure what Im doing wrong, I’m not an expert with WordPress code so may be doing something completely wrong. Please can you help, thanks.
Kind regards, John
]]>I was so hopeful your plugin would work for me. I was trying to build something similar myself then came across your plugin. I found this plugin via your blog post. Anyways, my menu is based on categories. When viewing a specific post in a category the breadcrumbs aren’t being shown. I think this is because I don’t have the specific post linked within the menu (you mentioned this in your blog post). It fails because the URLs aren’t matching.
I think you could probably make this work by looking at the permalink settings. My permalink is set up for /%category%/%postname%/
and my Category Base is articles
.
The URL for my post is
dev.local.com/travel/city-guides/vancouver
But your is_at_url
function is testing it against this correct category url:
dev.local.com/articles/travel/city-guides
With a regex you could probably make these URLs give a positive match based on the permalink settings.
For example:
Based on the permalink you could strip off %postname%
from the post URL and prepend the Category Base. This would provide a match.
But I guess if /%category%/
isn’t part of the permalink settings, this wouldn’t work. Something to think about though!