WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemap
Anyone on 3.5.1 getting an error on line 11 this is the fix... (1 post)

5 stars
  1. Luke Watts
    Member
    Posted 1 year ago #

    Thanks to AttitudeDesign over on github for this fix. Works perfectly!

    "We have managed to fix this, we have amended the following in google-xml-sitemap.php on line 56:
    Was:
    $xml .= "\t\t<loc>" . get_permalink( $post->ID ) . "</loc>\n";

    Now:
    $xml .= "\t\t<loc>" . str_replace('&','&',get_permalink( $post->ID )) . "</loc>\n";

    Hope this helps someone, and I hope this will get added into the plugin soon."

    5 stars for AttitudeDesign...not the author of the plugin who should be checking this more often! However, the plugin (with the above fix) works perfectly!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.