• Hi I’m wondering if there was a way to only start showing breadcrumbs after a certain amount of levels in?

    For example, I don’t need to see it on the home page or any of the parent pages, it’s only once I get to the sub pages of those parent pages that I want the Breadcrumbs to appear.

    Thanks in advance.

    Jordan

    https://wordpress.org/plugins/breadcrumb-navxt/

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

    (@mtekk)

    This is possible, the way you would do this is to add an if statement around the call to bcn_display() that checks that the current page is not the front page, and it is not a first level page. Start with something akin to this FAQ answer: https://mtekk.us/code/breadcrumb-navxt/faq/#use1 and add in the appropriate additional WordPress Conditional Tags.

    Thread Starter Jordan Eclevia

    (@jordan-eclevia)

    Hi,

    I get the concept, but I’m not sure what the coding for the first level pages would be. Would it be the page numbers (i.e., post=285&action etc. etc.) or is there a specific line of code for parent pages?

    Thanks!

    Plugin Author John Havlik

    (@mtekk)

    One way is to limit by post numbers, e.g. using is_page( array( 42, 54, 6 ) ) to select the top level items you do not want to display on. An alternate method is to do something like (is_page() && $GLOBALS['post']->post_parent != 0) where you check that the item is a page and that it has a parent (thus not a top level page).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Starting Hierarcy later?’ is closed to new replies.