WordPress.org

Ready to get started?Download WordPress

Forums

Yoast Breadcrumbs
all breadcrumbs display same post title regardless of title clicked (2 posts)

  1. greaterlight
    Member
    Posted 3 years ago #

    I am working on a site that someone else built. The breadcrumbs display the same blog title no matter which blog entry a user clicks on.

    For example:
    Users clicks on blog article #9 , breadcrumbs say "You Are Here: Page/Category/blog article #1"

    Users clicks on ANY blog#, breadcrumbs say "You Are Here: Page/Category/blog article #1"

    How do I fix this?

    http://wordpress.org/extend/plugins/breadcrumbs/

  2. savyizzy
    Member
    Posted 2 years ago #

    Try this one.
    Call wp_reset_query() before yoast_breadcrumb().

    <?php
    if (!is_front_page()) {
    if ( function_exists('yoast_breadcrumb') ) {
    wp_reset_query();
    yoast_breadcrumb('<div id="breadcrumbs">','</div>');
    }
    }
    ?>

    It worked for me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic