WordPress.org

Support

Support » Plugins and Hacks » Breadcrumb NavXT » Set breadcrumbs to link to posts rather than categories

Set breadcrumbs to link to posts rather than categories

  • jcyin

    @jcyin-1

    What I would like to achieve is this:

    Parent custom post leads to Sub custom post leads to Sub-Sub custom post. This should also be reflected in the breadcrumbs.
    On the Sub-Sub post page, clicking on the previous breadcrumb link should lead to the previous Sub post page.
    On the Sub post page, clicking on the previous breadcrumb link should lead to the previous Parent post page.

    Right now what happens is:

    On Sub-Sub post page, clicking on the previous breadcrumb leads to post category archive page with all posts displayed in a list.
    On Sub post page, clicking on the previous breadcrumb leads to a post category archive page with all posts displayed in a list.

    Another example:

    When I create a Page called “Fashion”, I add a gallery on that page to display a gallery of images each linking to a separate Page. When I click “Fashion” in the breadcrumbs, I’m taken to Page “Fashion”. This is what I want.

    When I create a Post called “Fashion”, I add a gallery on that post to display a gallery of images each linking to a separate Post. When I click “Fashion” in the breadcrumbs, I’m taken to Categories “Fashion” with a list of ALL the posts under category “Fashion”. Not the post with the gallery.

    I don’t understand why wordpress insists on taking me to the post Category rather than the post itself when I click on it’s name in the breadcrumb. Can Navxt help me resolve this issue or is there some PHP I need to modify?

    Sorry for the long post, but the issue has been plaguing me for a long time and I haven’t been able to find a solution anywhere.

    Thanks!

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

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

    @mtekk

    In the breadcrumb NavXT settings page, under the “Post Types” tab, look for the post type you are using. Then change the “PostTypeName Hierarchy” (where PostTypeName is the name of your post type) from “Category” to “Post Parent”. As long as you’ve setup the post parent and child relationship Breadcrumb NavXT will pick up on it in this mode. Breadcrumb NavXT picks this mode by default for CPTs that are hierarchical, if that isn’t the case for your CPT then it picks the first valid taxonomy type (this happens when a CPT is first seen and is overridden by the “PostTypeName Hierarchy” setting.

    jcyin

    @jcyin-1

    Even thought I’ve set a parent CPT to a CPT and then assigned a child to that CPT, when I access that CPT on a new window, the breadcrumbs still show the categories rather than the parent post link. What else I’m I doing wrong here?

    Plugin Author John Havlik

    @mtekk

    Did you change the “Hierarchy” setting in the Breadcrumb NavXT settings page? You need to do that to switch from a category to the parent hierarchy structure.

    jcyin

    @jcyin-1

    Yea I did change the hierarchy setting, selecting Post Parent rather than the Category.

    Do I also leave both the Category Archive Display and Category Hierarchy Display empty or do I need to tick them as well?

    Also do I need to set a Root page for each custom post type?

    Plugin Author John Havlik

    @mtekk

    Could you do a settings export and post it to somewhere like pastebin or gist? It’ll help if I can look at them.

    To do a settings export:

    1. Navigate to the Breadcrumb NavXT Settings page
    2. Click on the help tab in the upper left hand corner
    3. On the popdown, click “Import/Export/Reset” in the side menu
    4. Click the “Export” button
    jcyin

    @jcyin-1

    Here is the link for the pastebin, thanks so much for your consistent help and support!

    http://pastebin.com/6L8ddV7y

    jcyin

    @jcyin-1

    It’s really strange, even though in the permalinks it’s fine and displaying correctly.

    When you go to the “uk department store” post, the permalinks display:
    http://www.website.com/brand/uk-department-stores

    And the breadcrumbs display:
    Home » Brand » UK Department Stores

    However if you click on the “uk furniture store” child post link in the uk department store parent post, the breadcrumbs change to

    Home » Brand » UK Furniture
    rather than
    Home » Brand » UK Department Stores» UK Furniture

    The permalinks display fine as:
    http://www.website.com/brand/uk-department-stores/uk-furniture

    jcyin

    @jcyin-1

    Actually, I’ve managed to find out what was the reason it wasn’t displaying. I was using another theme and didn’t manually insert the correct breadcrumb php code into the header section, that’s why it doesn’t show up. So now it’s working.

    However, the breadcrumb still display “Brand”, which is the custom post type. This means that clicking that results in all posts under custom post type “Brand” getting displayed. Is it possible to remove this custom post content link from all breadcrumbs?

    Thanks

    Plugin Author John Havlik

    @mtekk

    Make sure that archive display is unchecked for your the Brand custom post type, that should resolve that issue.

    aliadison

    @aliadison

    hi there,
    I’m also having a similar problem. I have two categories”Vegas,C++” and a page”Tutorials”. I made the page menu “Tutorials” and the categories submenu. As we cannot parent a page to category, breadcrumb isn’t working well for me.
    I want crumbbread to show:
    HOME > Tutorials > Vegas
    HOME > Tutorials > C++
    instead of
    HOME > Vegas
    HOME > C++
    other than that I really liked your breadcrumb. waiting for you reply
    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Set breadcrumbs to link to posts rather than categories’ is closed to new replies.
Skip to toolbar