Forums

Breadcrumb NavXT
How display : Home > Page 1 > Category n ??? (5 posts)

  1. Matthieu
    Member
    Posted 3 months ago #

    How display : Home > Page 1 > Category 'x'
    Because, actualy, i have :
    Home > Category 'x'

    My category 'x' has no parent category but are a child of my Page 1 in my hierarchical menu

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

  2. mtekk
    Member
    Posted 3 months ago #

    Matthieu,

    Your menu is not representitve of the actual hiearchy (the menu lets you do pretty much anything, no matter how nonsensical). Breadcrumb NavXT reads and outputs the true hiearchy (or as close as it can get) of a post/page/archive. For category 'x' to be a child of Page 1, the category taxonomy must be a child of Page 1, and that is done by setting Page 1 as your "Page for posts" under Settings > Reading.

  3. Matthieu
    Member
    Posted 3 months ago #

    OK thanks but it's not possible in my case, because i have to do this for other pages.
    Is there a way to put an alternative custom breadcrumb for certains category with your plugin?
    If not for this category 'x', i should write a custom code to replace bcn_display(); with the breadcrumb i want.

    thanks for your response, and your plugin
    I think, it would be an excellent idea of update to have the choice to add exceptions. It would be perfect in my case.

  4. mtekk
    Member
    Posted 3 months ago #

    Matthieu,

    There are multiple ways of accomplishing things within WordPress. I'm having a hard time seeing a use case where a single category would be a "child" of a page (What are you trying to do? There may be a better way of doing it/help me understand why you need to do it this way).

    When push comes to shove, if you need to modify the breadcrumb trail, I reccomend using the bcn_before_fill and bcn_after_fill actions. An example on how to use them is available in the custom paged title extension plugin: http://plugins.trac.wordpress.org/browser/breadcrumb-navxt/branches/extensions/breadcrumb_navxt_cust_paged_title.php

    http://mtekk.us/archives/guides/conditionally-remove-home/ is another simple example of using bcn_after_fill

    Essentially, what you would do is inset a new breadcrumb object just before the last element on the bcn_breadcrumb_trail object's trail member array.

  5. Matthieu
    Member
    Posted 3 months ago #

    Ok thanks for your rapid answers

    The case where a single category would be a "child" of a page
    What are you trying to do?

    Yes it is.

    i 'll check your links

    many thanx and excuse my english

Reply

You must log in to post.

About this Plugin

About this Topic