Breadcrumb Titles For Pages

This plugin modifies wp_title() (the function used to create the title of your website) to output all parent Pages when viewing a Page.

Example: Viper007Bond.com » My WordPress Plugins » Breadcrumb Titles For Pages

It obeys your separator (if you’re using a custom one).

Download:

Note:

This plugin does not work with K2 Release Candidate 6 as it uses the_title() not wp_title(). If you wish to use this with K2, you will need to modify it’s header.php.

52 thoughts on “Breadcrumb Titles For Pages

  1. I’ve installed it on my website, running with K2 (rc6).
    I work with static content (pages and subpages) but I don’t see changes on my pages after intallation.

    I’ll keep trying 😉

  2. This is a great plug-in but I couldn’t get it to work until I switched themes.

    K2_Release_Candidate_6 – doesn’t work.
    WordPress Default 1.6 – works.
    WordPress Classic – works

    I confirmed these results on two separate blogs.

    OTOH, it is compatible with all my plugins.

    Sure hope you will add K2 compatibility. Thanks for creating this plug-in.

  3. Okay, found the problem. K2 uses the_title() not wp_title() as it should be.

    If I filter the_title(), it will affect all titles on the page. I could do the filter only once (i.e. the title), but that is risky as plugins and other things could be using the_title() before K2 does. Plus it’s kinda just ugly code.

    Not to mention K2 doesn’t use a separator, it does “Page Name at Site Name”. How would my plugin output? “Parent Page » Child Page at Site Name”? That looks weird to me.

    I’m thinking I just don’t provide support for unmodified K2. That’s not to say you couldn’t use this plugin with K2, but you’d just have to switch K2 to using wp_title('»', TRUE, 'right') and possibly get rid of the “at”.

  4. Related problem: I want to use Breadcrumb NavXT at the same time but when I activate Breadcrumb Titles For Pages, Breadcrumb NavXT’s breadcrumb trail gets messed up as follows:

    Breadcrumb Titles not activated – /About/test page 1 (this is correct)

    Breadcrumb Titles activated – /About/About test page 1

    I tested this using the Berry theme (http://mtekk.weblogs.us/code/berry/#installation) theme. You have to have Breadcrumb NavXT – Adminstration Interface plugin activated before Berry will work.

    Using both plug-ins would be absolutely fantastic.

    Thanks for your help.

  5. rickA on July 27th, 2008 at 3:09 AM wrote:

    [quote comment=”188385″]Okay, found the problem. K2 uses the_title() not wp_title() as it should be.

    Where do I apply this change?[/quote]

    K2’s header.php

    rickA on July 27th, 2008 at 3:20 AM wrote:

    Related problem: I want to use Breadcrumb NavXT at the same time but when I activate Breadcrumb Titles For Pages, Breadcrumb NavXT’s breadcrumb trail gets messed up as follows:

    I’d talk to the author of that plugin.

  6. Hello, this plugin looks like it will provide a great feature. However, after installing and activating it, I’m not getting the breadcrumbs on the sub-pages. Do I need to modify something in my header.php file?

    I tried to insert the line of code for wp_title that’s in my header.php file, but unfortunately I couldn’t get it to show up, even using the code tag. If you need to see it, please let me know how I can make it show up.

    I’m using the Revolution Blog theme (free), and it only comes with a default page template. Is there some HTML modification I need to do somewhere to make the breadcrumbs show up?

    NOTE: I’m not an advanced coder — I’m learning as I go — and would appreciate any help and pointers.

    Thank you!

  7. Deb: I downloaded the theme and it’s working just fine for me. It looks a little odd as that theme doesn’t use a separator, but other than that it works fine.

    If I were you though, I’d replace this:

    <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>

    with this:

    <title><?php wp_title(':', TRUE, 'right'); bloginfo('name'); ?></title>

  8. Thanks for getting back with me so quickly. I replaced the code as you suggested, but I still don’t have breadcrumbs on my subpages. I wondered if there might be a plugin conflict, so I deactivated a plugin that I wasn’t using, Subpage LIsting, but that didn’t make a difference.

    I *am* using the Exclude Pages for Navigation plugin, applying it to selected pages — and I definitely need to keep it. Would that be a problem? All the other plugins I’m using don’t seem to be related to the navigation/subpages.

    Can you think of anything else that might be preventing the breadcrumbs from showing up?

    And just to be sure I’m correctly understanding what this plugin does. Any Child page should have a breadcrumb, is that right?

    I’m baffled as to what to try next. I appreciate any additional thoughts you might have in troubleshooting this. I’d *really* like to get to work!

    Thank you.

  9. Hello,
    I´m using this plugin and i love it.
    It´s works 100%
    I want to know if, in this situation:
    Home >> Top Level Page >> Child Page >> Grandchild Page
    Is it possible in Grandchild Page, I have a link in Child Page to the respective page?And others level too??
    Thanks

  10. Viper007bond,
    Thanks for the thip.
    I want to know if it´s possible to do this in your plugin.
    If yes, how??
    Thanks

  11. Are you able to change the order of page elements from, e.g.,

    Grandfather > Father > Child

    to a more SEO-Friendly

    Child > Father > Grandfather

    ?

  12. hello!

    this plugin modifies wp_title()
    will get like this title
    Viper007Bond.com » My WordPress Plugins » Breadcrumb Titles For Pages

    can you pls do some change, make it to
    Breadcrumb Titles For Pages » My WordPress Plugins » Viper007Bond.com

    i try this ,but i get
    http://viper007bond.pastebin.com/f23d01869
    Viper007Bond.com » Breadcrumb Titles For Pages » My WordPress Plugins

  13. Try removing the array_reverse() line. Not 100% sure it’ll work though
    after i try also get this
    Viper007Bond.com » Breadcrumb Titles For Pages » My WordPress Plugins

    not
    Breadcrumb Titles For Pages » My WordPress Plugins » Viper007Bond.com

  14. thanks for this plugin. how can i display the breadcrumbs as a link for each page? it doesnt make any sense if the breadcrumb is not clickable.

  15. I needed to show Home title as dynamic (the real title of page), so i modified you plugin!
    Added following line after “$opt = get_option(“yoast_breadcrumbs”);” (line 170) into function yoast_breadcrumb():

    $opt[‘home’] = get_the_title(get_option(‘page_on_front’));

    Maybe this Home option can dropped altogether..

  16. Attempting to use this plugin with wp 3.3.2, twentyeleven theme, no other plugins installed, a sub-page does not display it’s parent in the title.

    I have not seen the functionality of this plugin being offered elsewhere, but would like to see it working.

    Should this plugin still work with wp 3.3.2, or is there something broken ?

    @ Roger, As for permalinks, no configuration of permalink appears to work. You mentioned /%postname%/ not working, which infers you may have it working with a different permalink structure, is that true ?

Comments are closed.