Support » Plugin: Breadcrumb NavXT » Breadcrumbs in the search loop

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik


    Internally, Breadcrumb NavXT caches the breadcrumb trail so that it doesn’t regenerate it several times on multiple calls. This causes issues if you are expecting it to change per an item in an archive page. There isn’t any really good ways to get around this behavior at the moment. There are two ways, but they will not work in Breadcrumb NavXT 5.0. They are:

    1) Before each call to bcn_display() place the following:

    global $bcn_admin;
    $bcn_admin->breadcrumb_trail->trail = array();

    2) Manually create a new instance of a bcn_breadcrumb_trail object and call the requisite member functions rather than using the bcn_display() wrapper.

    The internal structure of the plugin is changing in version 5.0 (git branch “Dancer”), and the above two methods will have to be adjusted to match the new structure. Though, I could probably add in something to bypass the caching.

Viewing 1 replies (of 1 total)
  • The topic ‘Breadcrumbs in the search loop’ is closed to new replies.