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

    (@mtekk)

    It appears that the same breadcrumb is being generated for both linked pages. The typical cause for this is a secondary loop that corrupts the state of the global $wp and/or $wp_query variables.In this instance, the “Latest Adverts” sidebar is causing the issue (the last entry in that sidebar is what the breadcrumb is getting generated for).

    Thread Starter mfjj

    (@mfjj)

    Thanks John. It worked when i removed the widget.

    Plugin Author John Havlik

    (@mtekk)

    One thing you can try is calling wp_reset_query() directly before calling bcn_display(), it may allow you to use that widget without issue.

    Please Note:

    Look for theme files calling bcn_display() re this issue… I initially placed wp_reset_query() within the plugin’s own code, which didn’t fix the issue. Once I found the problematic bcn_display() call within the theme code, calling wp_reset_query() fixed the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Breadcrumbs for Pages Getting Incorrect Hierarchy’ is closed to new replies.