WordPress.org

Forums

Breadcrumb NavXT
[resolved] All pages show strange custom post type in breadcrumb trail (3 posts)

  1. JBIRD1111
    Member
    Posted 3 years ago #

    Hi, I have a wordpress network that heavily relies on breadcrumbs. It works perfect for all of the custom post types; however on any one page (home, about, etc) the breadcrumbs display incorrectly. They all show: "Home > Options Panel" where options panel is one of the theme's custom post types. I have no idea why Options Panel is showing up, when it is completely unrelated from the pages.

    In addition, the blog single pages show "Home > Blog > Options Panel" but the blog main page shows "home > Blog" which is correct. I have no idea why the blog single pages and normal pages are including the "options panel" instead of the current page.

    On the wordpress backend, if I change the breadcrumb settings for the "Posts & Pages" it does not affect the page's breadcrumb. What does affect is is if I change the settings for the "Options Panel breadcrumb area. It is very odd because that custom post type isn't related to any of the pages...

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

  2. JBIRD1111
    Member
    Posted 3 years ago #

    Turns out I identified what is causing the problem, but I still cannot figure out why. In my header.php file, I loop through the custom post type, "options panel" which is the exact same post type that is showing up problematically. When I remove the loop from the header, everything works fine. The problem, is that I need to use that loop in my header. The loop look like this: (any ideas?)

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  3. JBIRD1111
    Member
    Posted 3 years ago #

    Fxxed it! Using <?php wp_reset_query(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Breadcrumb NavXT
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic