WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
[resolved] Where did Breadcrumb NavXT go? (6 posts)

  1. RHCdG
    Member
    Posted 1 year ago #

    Hi,

    Maybe I'm overseeing something but I don't see the breadcrumb trail anymore at the top of my page like it used to be until last week. It is still enabled but it just doesn't show. And, with over 700 pages, I do need it... Can you please take a quick look at my site and let me know what I can do to bring it back?

    Many thanks!

    Rutger

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    If you look at the HTML source the PHP code for Breadcrumb NavXT isn't getting executed (getting passed straight through to the browser). Make sure you placed the calling code within a PHP file (.php extension).

  3. RHCdG
    Member
    Posted 1 year ago #

    Hi,

    Thanks for your response. Unfortunately, I do not master PHP, therefore I do not understand what you're saying. Can you be more precise, i.e. can you tell me what the calling code is and in which file and where in the file I should put it?
    Should it perhaps be somewhere in "the loop"?

    Thanks,

    Rutger

  4. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    The calling code is fundamentally a call to the function bcn_display(). There may be some extra code surrounding it for presentation purposes (keeping things from being called if the plugin isn't activated, etc.), but . Examples of the two standard calling code blocks are available within the "Quick Start" section of the built in help (click the help tab in the Breadcrumb NavXT settings page within your WordPress admin area).

    The calling code does not have to be in "the loop", it was designed to work outside of "the loop" (and probably works inside the loop) to increase flexibility.

    For the linked site I'm seeing:

    <div class="breadcrumb">
    <?php
    if(function_exists('bcn_display'))
    {
        bcn_display();
    }
    ?>
    </div>
    <?php } ?>

    the area between the<?php and ?>is the code that PHP is supposed to be reading and executing, it shouldn't show up in the output HTML that a browser sees. I noticed a stray<?php if ( !is_front_page() ) { ?>
    that is being output as well. Something is very goofy here.

    I guess the first thing to look at is where did you place the calling code? In particular, what is the name of the file it is located in?

    Or, by chance, did you try placing it in a text widget or something along the lines of a PHP code execution widget? I could see that causing this issue. If you want to use a widget, a Breadcrumb NavXT widget is provided as part of the normal plugin install.

  5. RHCdG
    Member
    Posted 1 year ago #

    Hi,
    It's been six months since your reply but I just wanted to let you know that I got things working again. The error was due to a glitch in the Atahualpa theme (which is otherwise great); the solution being to put the calling code directly in the theme's index.php file, right after get_header(); ?>

    Thanks again!
    Rutger

  6. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you got things working, thanks for following up.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic