[resolved] [Plugin: WordPress Breadcrumbs] Bug: "$output->guid" for URLs. Fix: replace with get_permalink($p (3 posts)

  1. aalaap
    Posted 6 years ago #

    I created a WordPress blog locally and then uploaded it to the live site. I noticed that the breadcrumbs created were pointing to http://localhost instead of the live site, so I opened up the plugin, found and probably fixed the bug.

    The problem is where the author is setting a crumb link href by taking the value of $output->guid. The GUID is usually the same as the permalink of the page, but the difference is that this doesn't change if you change the location of the blog, since the GUID is an id and isn't meant to be used as a permalink.

    The fix is simple. Find $output->guid and replace it with get_permalink($page_no).

    That's it.

    I hope the author of the plugin acknowledges this bug and fixes it in his code, but till then, this fix works.

    - Aalaap Ghag


  2. rustbucket
    Posted 6 years ago #

    That fixed it! Thanks for figuring that out aalaap, you just saved me hours of banging my head against a wall.

  3. kaibo
    Posted 6 years ago #

    WordPress Breadcrumbs Version: 1.2.3 works like a charm with my WP 2.8.4!
    Thank you, Daniel! I gave it a 5 star.
    Does any know how to prevent it from showing at Home page?

Topic Closed

This topic has been closed to new replies.

About this Topic