WordPress.org

Ready to get started?Download WordPress

Forums

Udinra All Image Sitemap
[resolved] Sitemap not formed correctly - fixed! (3 posts)

  1. thewisebunny
    Member
    Posted 2 years ago #

    Great plugin - I haven't managed to find one that can grab images from absolutely everywhere, including the standard wordpress galleries and featured images.

    However it wasn't forming the XML correctly - any special characters in the post url weren't being broken out in the XML. For example, I had a number of URL's that included ampersands.

    If you have similar issues, try changing line 104 in udinra-all-image-sitemap.php to:
    $udinra_xml .= "\t\t"."<loc>".htmlspecialchars($udinra_post_url)."</loc>"."\n";

    cheers

    rog

    http://wordpress.org/extend/plugins/udinra-all-image-sitemap/

  2. thewisebunny
    Member
    Posted 2 years ago #

    Just updated to latest versino of plugin. For anyone with the problem outlined above, the new line to change is 178

    Cheers

    rog

  3. Aloysius314
    Member
    Posted 1 year ago #

    Great, thanks for that info thewisebunny. For me, it was line 174, but for anyone else with this issue, just look in that general neighborhood and you will be able to match the code with the correct line.

    Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic