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. You can also use the Breadcrumb NavXT Remove Current Item Extension plugin.

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(). E.g use:

<div class="breadcrumbs">
    <?php if(function_exists('bcn_display') && !is_front_page())
    {
        bcn_display();
    }?>
</div>

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 “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: 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.

on

Trackbacks/Pingbacks

  1. Pingback: Mtekk’s Crib » Blind Updating

234 thoughts on “FAQ

  1. Hi I installed this plugin and when I used this code

    It just shows the current page position..Its parents are not shown.I want to use it for custom post/taxonomy and for pages and.. How to do this??

    • Prakash,

      If you are going to include code in your comment, please use the HTML code tags, otherwise WordPress will strip out the code.

      If you are only getting the current item in the breadcrumb trail (no home/blog breadcrumb) then you’ve likely turned off those items in the settings page. For the page post type only page parents are allowed to be used as the hierarchy (use a custom post type if you need a hierarchical post type and want to use a taxonomy hierarchy with it), and as long as the page has a parent it should show up in the breadcrumb trail.

      -John Havlik

  2. Hello,
    I’m wondering if your WP plugin supplies RDFa breadcrumbs. Yoast has advised my client to add them, but the RDFa Breadcrumb plugin is 10 months old and only compatible up to WP 3.5.2 (and many fewer downloads than yours). Keeping my fingers crossed! :)
    THank you,
    Bridget

    • Bridget,

      While Breadcrumb NavXT does not do this automatically for you, it is possible to do. You will have to modify all of the breadcrumb template settings to include the requisite extra markup that RDFa requires. I just ran though setting this up on this site and will write up a procedure and post it tomorrow or Friday (will be less work that what I had to do as you will have a settings file you can import to do most of the work for you).

      -John Havlik

      • Hi,

        have you done this script? Can you forward me this?

        It would be very cool, so the breadcrumbs would appear in Google SERP.
        I have implement it at above website, but i cannot find how to overwrite it for being RDFa combatible.

        Thanks,

  3. Hi John,

    Great stuff. I’m currently using your Breadcrumb NavXT Remove Current Item Extension plugin but for some reason it stopped working and the current post/page title keeps displaying. I’m wondering if its due to compatibility issues with WordPress 3.8.1.

    Any thoughts?

  4. Hiya, running the utterly brilliant plugin on Graphene; for some reason the links in the trail don’t pick up the formatting – just a white background. I tried switching off the header trail and using the widget but the widget formatting was all over the place. Because I’m a novice I haven’t messed about with any code anywhere as it terrifies me. Any suggestions for a fix very much appreciated.
    sean

    • Recto,

      What formatting are you referring to? Breadcrumb NavXT itself does not supply any CSS styling, so you need to apply that through your theme’s style.css or other applicable method depending on your theme setup. You will want to use a HTML/CSS inspector such as Firebug in Firefox or the built in inspector in Chrome to investigate what CSS rules are being applied to the breadcrumbs.

      -John Havlik

  5. The plug-in looks interesting, and we’d like to use it on our research computing site for our documentation pages. But no others. Is there a way to enable the breadcrumb function only for this ‘page branch’ and its children, but nowhere else in the site?

    Thanks,
    Bob

  6. Hi I have breadcrumb like this

    Section A / Section B / Section C / Section D

    I want to insert Section X become:

    Section A / Section B / Section X /Section C / Section D.

    How I supposed to do that?

    • The only valid way of doing this right now is to have Section X be child of Section B and the parent of Section C. Otherwise, to place truly custom breadcrumbs into the breadcrumb trail you will need Breadcrumb NavXT Menu Magic (not yet released, but will be within a few days).

      -John Havlik

      • Any news on the release of Breadcrumb NavXT Menu Magic? Will it be able to rewrite a custom post type slug from portfolio_page to portfolio? If not is there a code snippet that works with Breadcrumb NavXT that will do this?
        Cheers,
        Scott

        • Breadcrumb NavXT Menu Magic has been released, though I have not publicly announced it’s release. It allows you to generate custom and arbitrary hierarchies using a WordPress menu. It won’t actually change slugs of anything unless that’s what the resource’s slug is (e.g. you can change the slug in a change from an archive that WordPress generates for you to a page you create).

          -John Havlik

  7. Hello,

    I seem to be having an issue with the breadcrumb trail..If I enter a page I get:
    Home > Page1
    and everything is ok but if I go to an extra page then the trail breaks and it shows:
    Home Page1 >> Page2
    and so on. Is there a way to fix this?

    Thanks

  8. Hi…
    Still not sure how to implement this.
    Q: How do I remove the breadcrumb trail from the home page?

    Can you please guide me where should put those code?

    <div class="breadcrumbs">
    <?php if(function_exists('bcn_display') && !is_front_page())
    {
    bcn_display();
    }?>
    </div>

  9. Hi,
    currently I have this breadcrumb in my site. I just want to “hide”
    level 2 and level 3 of my hierarchy. Is there a way to do it?

    from: Home / Bares e Restaurantes / Minas Gerais / Belo Horizonte / Bares Minas BH

    to: Home / Bares e Restaurantes / Bares Minas BH

    Regards,
    Fernando

  10. Fernando:
    Hi,
    I just want to “hide” level 3 and level 4 of my breadcrumb. Is there a way to do it?from: Home / Bares e Restaurantes / Minas Gerais / Belo Horizonte / Bares Minas BHto: Home / Bares e Restaurantes / Bares Minas BHRegards,
    Fernando

  11. Hi there,

    Installed and doesn’t work. Updated with latest WP and theme is KingSize.

    Any special instructions? Added to the Custom Header HTML section in theme options: This area is used for when you need to include new scripts into your header without needing to make changes to the “header.php” file. It’s recommended you use this to avoid overwriting your changes when updating the template files during updates.

    Any help please?

    • Since I am not familiar with the KingSize theme, I’m going to assume the Custom Header HTML theme option does not accept PHP (if it did that would be bad). You have two good options here: Either use the included widget, and place in the appropriate widget area. Or, create a child theme for KingSize where you redefine the header.php file to include the Breadcrumb NavXT calling code in the appropriate area.

      -John Havlik

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>