Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the "breadcrumb-navxt" plugin and have following issue:

I have a page and some posts in that page. When I go to that page and selects a post to display as single post the breadcrumb shows

Home>pagename>postname

which is what I need, but when I hover over the link on 'pagename' it shows 'category/postname' which should be 'pagename'.

I found the following piece of code in class.bcn_breadcrumb.php file which might be generating the category of post but don't know what to replace it with;

    //Figure out the anchor for current category
    $breadcrumb->set_url(get_term_link($term, $term->taxonomy));
    }
    //Get parents of current category
    if($term->parent)
    {
        $this->term_parents($term->parent, $term->taxonomy);
    }

I need to change category/postname to pagename.

share|improve this question
    
As far as I can see that, that's specific to the plugin, but not to wordpress? –  kaiser Jan 31 at 11:41
    
Change the structure in your Permalink settings. This question relates to a plugin which is off topic as not specific to WordPress. –  Brad Dalton Jan 31 at 13:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.