php - How to remove "Home" from breadcrumb wordpress -


i have wordpress breadcrumb code i'm trying edit nested pages. don't want home link show in breadcrumbs.

<div id="crumbsonly">          <?php          breadcrumbs_plus(array(              'prefix' => '<div id="breadcrumbs">',              'suffix' => '</div>',              'title' => false,              //'home' => __( 'home', 'options_front' ),              'sep' => '&nbsp;&nbsp;&#8725;&nbsp;&nbsp;',              'front_page' => false,              'bold' => false,              //'blog' => __( 'blog', 'options_front' ),              'echo' => true              ));          ?>      </div> 

how fix home link doesn't show up? tried canceling out (//) 'home' it's still there. it's not plugin part of wordpress inspired theme. created new template page breadcrumbs page title nested pages.

instead of faffing making edits breadcrumbs plus plugin code, better off altering text returned function.

something should (untested, shouldn't difficult working):

<div id="crumbsonly"> <?php   // generate breadcrumbs markup   $bc = breadcrumbs_plus(array(     'prefix'     => '<div id="breadcrumbs">',     'suffix'     => '</div>',     'title'      => false,     'sep'        => '&nbsp;&nbsp;&#8725;&nbsp;&nbsp;',     'front_page' => false,     'bold'       => false,     'echo'       => false   ));    // remove first link (to home page)   $bc = preg_replace('/<a .*?<a /s','<a',$bc,1);   echo $bc; ?> </div> 

note parameter 1 in preg_replace() call, limits replacement first occurrence of match string.


Comments