Support » Plugins » [Plugin: WordPress Breadcrumbs] Bug: “$output->guid” for URLs. Fix: replace with get_permalink($p

  • Resolved aalaap

    (@aalaap)


    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

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • That fixed it! Thanks for figuring that out aalaap, you just saved me hours of banging my head against a wall.

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Breadcrumbs] Bug: “$output->guid” for URLs. Fix: replace with get_permalink($p’ is closed to new replies.