FAQ
These are a few Frequently Asked Questions, and/or frequent search queries and answers that hopefully help solve them. This by no means is an exhaustive list.
Q: How do I remove the current item from the breadcrumb trail. E.g. the breadcrumb trail is Home > Category A > Category B > Current Page, and I want to remove “Current Page”
A: True breadcrumb trails include all of the breadcrumbs, including the current page. Therefore there is no built in option for removing the current item. Typically, the motivation behind removing the current item is due to having the page title too close to the breadcrumb trail. Good design will have proper spatial and visual separation between the breadcrumb trail and the page title. This includes proper sizing of both items which alone can provide enough separation.
However, removing the current item isn’t impossible, but it is a task left to the reader. Note that this will be easier to do with 4.0.
Q: I receive the PHP error “Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_admin.php on line 53″.
A: This is usually caused by PHP4, since Breadcrumb NavXT 3.0.0 PHP5 is required. You may also find this helpful. If you are running PHP5 and receive this error see this article: Breadcrumb NavXT Line 53 Error.
Q: I receive the PHP error “Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /wp-content/breadcrumb-navxt/breadcrumb_navxt_admin.php on line 46″.
A: Beginning with version 3.0.0, Breadcrumb NavXT requires PHP5, please update to PHP5. If your host does not offer PHP5 hosting yet, bug them until they do. You may also find this helpful.
Q: I receive the PHP error “Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_class.php on line 25″.
A: Another error caused by PHP4 environments. Please inquire with your webhost on how to migrate to PHP5 immediately.
Q: How do I remove the breadcrumb trail from the home page?
A: Wrap the calling code with an if block that tests is_front_page().
Q: My breadcrumb trail on all my posts is for the same post.
A: This is caused by a secondary loop in your theme which is not behaving “nicely”. The secondary loop should not modify the variable $post, and if it does, the variable $post should be returned to it’s original state afterward. The best way of accomplishing this is to call wp_reset_query() before your Breadcrumb NavXT calling code (most likely bcn_display()).
Q: I receive the PHP error “Fatal error: Cannot redeclare class bcn_breadcrumb in /wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_class.php on line 29″.
A: A few things may cause this, among them PHP4. Some themes include the Breadcrumb NavXT code in their functions.php file, in this case you should not install Breadcrumb NavXT and use the theme distributed code. Lastly, make sure you do not have an old version of Breadcrumb Navigation XT activated while trying to activate Breadcrumb NavXT, this will cause problems.
Q: I receive the PHP error “Fatal error: Call to undefined method bcn_breadcrumb::display()” or “Fatal error: Call to undefined method bcn_breadcrumb::assemble()”.
A: Beginning in Breadcrumb NavXT 3.0 the class structure has changed, the bcn_breadcrumb class’ member functions are now for the most part in bcn_breadcrumb_trail. Please see the documentation on the new advanced usage guidelines and update the code used to call the plugin. Usually this code will be in your theme’s header.php file.
Q: How do I remove the home/blog breadcrumb from the breadcrumb trail?
A: Prior to Breadcrumb NavXT 3.0, there was no easy way to remove the home breadcrumb from the breadcrumb trail. Simply emptying the contents of the “Home Title”/”Blog Title” options will not remove the home breadcrumb. In Breadcrumb NavXT 3.0 the proper way to not include the home breadcrumb is to use the “Home Breadcrumb” option and set it to “Leave the home breadcrumb out of the trail.”.
Q: Instead of a breadcrumb trail I recieve the message “Please use bcn_display instead of breadcrumb_nav_xt_display”.
A: The function breadcrumb_nav_xt_display has been deprecated and does not exist in versions after 3.0. Update the code used to call the plugin, usually this will be in your theme’s header.php file.

Oh there is prefix and suffix for category and category archive, didn’t notice that. It is all right now, thank you.
Yeah, the archive for the taxonomy and the taxonomy itself have two different prefixes to allow for a higher degree of customization.
-John Havlik
I love the plug-in! It works great & I only have one issue. I have the post taxonomy set to category. When the Archive for category….is clicked, the page that displays is the content for all of those posts in that category. I would rather it be a list of blogs by title like the archive page. Any idea on how to make it do that or why its not to start with?
Elizabeth,
Breadcrumb NavXT links to the taxonomy term archive page for the given taxonomy term. This is proper, and I’m not sure what you mean by “list of blogs”.
-John Havlik
Hi, I was wondering if I could set this plugin to use breadcrumbs the way a user would navigate my sight:
Page-> Page ->Post
At the moment the breadcrumbs work like:
Category archive <-Category archive <- Post
Does this make sense? Is this possible?
Nate,
You can set the post taxonomy to page. Just be aware that you are then responsible for ensuring that the
post_parentmember of the$postvariable is set accordingly for every post.Posts are not children of pages, so what you are asking is in the class of “abusing the post hierarchy”. Thus, full support of this is not something I provide through this plugin.
-John Havlik
John,
Do you have any documents on how to set this up? When I changed the post taxonomy to page all I get is “Home>current post.” I need it to show “Home > Page > Post.” I don’t know how to assign the correct page for the breadcrumb to display on the post page. Can you point me in the right direction?
Really, this is an advanced topic that is not for the those not well versed in PHP and do not have good knowledge of how WordPress does things. Honestly, I haven’t had time to try to do the part that isn’t in Breadcrumb NavXT.
-John Havlik
Thanks for a great plugin – and keep up the good work!
IMHO it would be nice to have a quick reference for the API, when you have time of course!
We use quite a lot of multisites with the API to customise our breadcrumbs, with a link to the main University at the front
$breadcrumb_trail->opt['mainsite_display'] = ’0′;
get’s rid of the main site link at the front of the breadcrumb on a network site bradcrumb
Hi,
can u tell me where i have to place this code?
$breadcrumb_trail->opt['mainsite_display'] = ’0′;
because when i place it, the whole front page isnt showing anymore..
thanks in advance!
regards
Fer
Hi –
I foolishly tried to edit some code and am now getting the following error on my site:
Fatal error: Call to a member function get_queried_object() on a non-object in /hermes/web05/b1514/moo.housenumberlabcom/home/wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_class.php on line 851
I can’t access the control panel or anything. In dire straits here so I really need your help. Thank you.
Milano
I’ll try to disable breadcrumb from homepage, i tried to do is_front_page(). but i can’t do it. I do anything wrong? What’s exactly the function? Thanks
Damia,
Could you post the code you tried using, including the call to bcn_display()?
-John Havlik
Hi,
Thanks for at nice plugin – it works perfectly!
Have a question though – is it possible to have the breadcrumb show all the child pages in between the parent page and the (child)page you are currently at? So that you get a full trail of the page hierachy?
Example: Parent page X has child pages Y Z W – I’m at W and would like to see Y and Z in my trail.
Secondly: Can I add a :next function til the breadcrumb – still following the hierachy?
Thanks a lot!
Best wishes
Trhp
In the POSTS & PAGES tab you’ll see a checkbox that says “Show the taxonomy leading to a post in the breadcrumb trail”.
Underneath there are some options. That’s what you’re after.
Im having a strange issue where the breadcrumbs are appearing when viewed through Chrome but not Firefox. Could there be a reason for this or would it most likely be plugin interference of some kind?
Sorry, scratch that, i see what i was doing wrong now.
Is it possible to get rid of the Current Page title in the breadcrumbs?
I am using it above page titles so there’s a breadcrumb that is redundant:
HOME > CATEGORY > ARTICLE NAME
ARTICLE NAME
Nigel,
True breadcrumb trails include all of the breadcrumbs, including the current page. Good design will have proper spatial and visual separation between the breadcrumb trail and the page title. This includes proper sizing of both items which alone can provide enough separation.
That said, there are ways of removing the current item from the breadcrumb trail. I have covered them in the past. However, none of them are recommended at the moment as they will not work with Breadcrumb NavXT 4.0.
-John Havlik
Hi,
I have been trying to get the breadcrumbs to follow the user navigation of the site. Could you please advise me of the correct configution to use?
At the moment, no matter what I try I end up with:
Home » “current page”
I am expecting that if I navigated through four pages that the breadcrumbs would mimic this e.g. Home page to About to Shop to Blog would give me:
Home » About » Shop » Blog
Unfortunately (and frustratingly), I always end up with just the ‘Home’ page and ‘current page’ in the trail.
Thanks in advance for your help with this matter.
SCR
I have the same problem and it’s quite frustrating.
The current page is generated from my theme and has different formating to the rest
of the breadcrumb intentionally.
Any ideas how I can stop it from repeating twice?
Is still what to keep the last separator.
Thanks in advance
Looks like you have two different issues. The big one is a fundamental misunderstanding of breadcrumb trails and what Breadcrumb NavXT does. Breadcrumb NavXT is a locational breadcrumb trail generator for WordPress. From your description, you are looking for path breadcrumbs, which are more or less the same as your browser history (back button).
The second issue seems to be either not having a deep hierarchy (so you only see two breadcrumbs at a time), or possibly a misconfiguration issue. It is most likely that you don’t have a very deep hierarchy which limits the usefulness of locational breadcrumb trails.
-John Havlik
Hi,
Happy with this plugin, just one thing I cannot get working.
I’m accessing a blog archive from category “Actueel” from the main menu and the breadcrumb says correctly:
Home > Actueel
If I then click on one of the items on this page, the breadcrumb says:
Home > > De campagne gaat van start
You see that “Actueel” has now disappeared, as in is an empty string now. What am I doing wrong or am I missing?
Thanks, Nathalie
Hello, is it possible to use image instead of text separator? If yes how could I set absolute path to image. Thanks
majak,
Just place the html code into the setting “Breadcrumb Separator” (it should work, if it doesn’t let me know).
-John Havlik
My problem is that I need to know absolute path of image – so I need php code insert into settings.
Something like this:
Breadcrumb Separator = "<?php bloginfo( 'template_url' ); ?>/images/arrow.gif"
And it does not work.
Is there any solution?
majak
HTML code works fine.
I tried instead of php code use absolute path manually:
<img src="wp-content/themes/MIL_Theme/images/arrow.gif" class="sep" alt=""/>but it is not good solution. However it works.
It is too much of a security issue to allow PHP in a setting. Having the absolute URL in the separator for an image has worked fine for everyone for the last three years. And, it is the method I’d recommend (if you change themes you will need to update it anyways).
-John Havlik
The breadcrumb is showing up as a block. I don’t want it having the same css properties as a block. How can I add it without it shwoing up as a block?
When I paste the code from your instructions in my page.php i get an syntax error.
Thank you
Hi,
Thanks for a great plugin!
Happy with this plugin, just one thing I cannot get working.
I’d like to add a couple of words (unlinked) before Home, like:
This is a breadcrumb: Home > page > page
How do I do that?
Thank you