Support » Plugin: Google XML Sitemap for Images » Feature: Generate by post modified date

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can do this by editing the plugin. In the function image_sitemap_loop(),




    … just before the closing of the SQL query ");

    I edited the plugin directly by FTP.

    Seems to work. Now the latest posts are the first to be listed in the XML file, though I’m not sure if this would make any difference to Google.


    Thanks for the tip.

    I finally added the order by, it works. Like you said, I don’t think it will make much difference but now makes more sense. The newer at the top 🙂

    BTW – I notice that the plugin seems to list images that are no longer associated with posts, but – meh.

    I did notice that and I’ve tried to add some conditions in the query, no luck.

    Eventually I’ve re-generated the XML and those bad links were gone, weird stuff 😕

    You can test the sitemap before and after adding it to Google Webmaster Tools to see if there’s any errors.


    They’re not “bad” syntactically, just “bad” as in you don’t really want them there! Need to look at the sql query sometime..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature: Generate by post modified date’ is closed to new replies.