Forums

Breadcrumb NavXT
[resolved] Breadcrumb in theme doesn't work correct until widget is not activat (6 posts)

  1. bogastyle
    Member
    Posted 6 months ago #

    Hi,

    I have custom post types "cases" on client site!
    I made them by "Custom Content Type Manager" plugin!

    For breadcrumb I.m using bcn_display() in header.php.
    It shows wrong path and don't show current post title.
    Path looks like:
    Home -> Cases* -> Wrong title
    it should be:
    Home -> Cases -> Current case title
    *here "Cases" is link and points to "Current case"

    When I activate "Breadcrumb NavXT" widget and leave bcn_display() in header.php - it starts to show path more correctly:
    Home -> Cases -> Current case title
    where "Cases" again points to "Current case", but now at least title of current post is correct!

    I'm using Breadcrumb NavXT Version 3.9.0.

    I can create widget zone special for breadcrumb, but if there any decision I prefer to use function in theme!

    Site is in development and it is on localhost, so I can not provide direct link!

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

  2. bogastyle
    Member
    Posted 6 months ago #

    I don't give up! :-)
    First it looks like previews issue, that function doesn't work without plugin, is because theme is messed up!
    Đ¢hat's why:
    1. I made new WordPress instalation and installed there CCTM, Breadcrumb NavXT and Simple Taxonomy.
    2. I create custom post type "Cases".
    3. I create custom taxonomy "Individual cases" witch is assigned to "Cases" post type.
    4. I added new case "1 individual case!" and put it in "Individual cases".

    Now in breadcrumb navigation /only function in theme/ I have:
    Blog -> Cases -> 1 individual case
    where:
    - Blog - link and points to site home.
    - Cases - link and point to "1 individual case"
    - 1 individual case - not link. Right current post title!

    The questions here are:
    1.Why Cases points to current post?
    2.Why url is not like:
    Blog -> Individual cases -> 1 individual case
    where:
    Individual cases - must be a link and point to custom taxonomy archive/category page /mean page that lists all posts asociated with this taxonomy/.

  3. mtekk
    Member
    Posted 6 months ago #

    For the first issue, this is probably a known bug in 3.9.0, try the 4.0 beta that is available.

    For the second issue, you need to do a few things. The first is you post type of "Cases" needs to be a non-hierarchical post type. Then, under the settings for Breadcrumb NavXT there should be a tab for "Cases" under it you will need to set the taxonomy to your "individual cases" taxonomy. There are other options on that tab that you may find useful, and you will want to play with things a little bit.

  4. bogastyle
    Member
    Posted 5 months ago #

    Tank you mtekk!
    It works!

    ...The first is you post type of "Cases" needs to be a non-hierarchical post type. Then, under the settings for Breadcrumb NavXT there should be a tab for "Cases" under it you will need to set the taxonomy to your "individual cases" taxonomy...

    I made this and fix both issues!

    Best Regards!

  5. fireproofsocks
    Member
    Posted 5 months ago #

    Ah, that makes sense: the hierarchical chains can get confusing -- especially if you use custom hierarchies between different post-types.

  6. bogastyle
    Member
    Posted 5 months ago #

    Hi fireproofsocks,
    thanks for interest!

    The problem was that this custom post type "case" was set as hierarchical!
    And it was confusing because previews developer is set up custom categories for this post type but never used them in site! They used one post as parent for other - witch produce blank page!?

    Any way with help of mtekk I'll try to fix structure and then redirect old url's!

    :-)

Reply

You must log in to post.

About this Plugin

About this Topic