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

215 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

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>