• Hi,

    I have a breadcrumb link into a custom post single page.

    Actually:
    Home > Category > Sub Category > Post

    What I want:
    Home > Category > Sub Category

    I have this working code in single-custom.php because I didn’t found a function parameter and -at same time- I don’t want to modify de plugin code:

    $bc = bcn_display(true);
    $strrpos = strrpos($bc , '»' , -1);
    $less = strlen($bc) - $strrpos + 1;
    
    echo substr($bc , 0 , "-$less");

    What is the best way to remove that text? Thank you!

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How removing the page/post name from breadcrumbs?’ is closed to new replies.