Updated: qTranslate support for the Google (XML) Sitemaps Generator WordPress Plugin 3.1.6 (2nd Release)


Although, as I said in the original post, I had not originally written the code modifications to enable the qTranslate support for the Google (XML) Sitemaps Generator WordPress Plugin, I decided to make some corrections myself to do the following things:

  • Home page now appears in the different languages in the sitemap.
  • Entries not written in the default language do not appear anymore in the sitemap. Now, just the written languages appear. (Thanks Blutarsky for notifying the bug)

The updated code modifications and the new download version are in the original post:

Support appreciated!

All the content offered in this website is, except noted otherwise, of free nature. This means you can share it wherever you want if you do it freely and stating its source.

If it was useful for you and you’d like to contribute, you can make a donation or, at least, visit one of our advertisers of your choice; they are all around the site.

Incoming search terms for the article:

10 Responses to “Updated: qTranslate support for the Google (XML) Sitemaps Generator WordPress Plugin 3.1.6 (2nd Release)”

  • Hi there my friend, I have discovered thatlatest posts aren’t being included in the sitemap. How is that?

    • Hi man!

      I think there isn’t any part of the code which may exclude some published posts…
      Has the sitemap been regenerated properly last time?
      Try to rebuild it in wp-admin/options-general.php?page=sitemap.php…
      If it has, talk to me again and we’ll see which may be the problem…
      The strange thing is that I’ve not had any problem of this kind…


  • Sorry I was wwrong, now the missing links are there!

    • Now it sounds better! 馃榾

      If you have the plugin configured to “Rebuild sitemap if you change the content of your blog”, it may take some minutes after each update for it to get fully rebuilt…

      ‘Till the next time! :)


  • OT: wonder if Google gets bothered about continuous notifications or not. At the moment I have disabled notifications, although because Google is downloading daily the sitemap anyway.

    Your thoughts?

    • No, there are no problems in pinging Google each time you update or create a post.

      It has an intelligent enough alogorithm to avoid unnecessary downloads. And don’t forget the sitemap itself carries the “Last Modification Date” of each post.

      There shouldn’t be any kind of trouble with that option set.

      Anyway, the regeneration of the sitemap can take a considerable amount of time as you have more and more posts, tags, categories, etc. So you could regenerate it manually when you wish to lighten your server stress. (There is an option you can enable to be able regenerate your sitemap by just issuing a GET request).

      Hope it helps!


  • I’m testing the sitemap build process; it looks like sometimes it is not updated instantaneously, when a new post is published. I have checked out the runtime: when no problem arises, the building process takes about 17.78 seconds to complete and uses 24.5 MB of memory. Reasonable.

    But later on I have opened again the admin panel and found the following message:

    # The last run didn't finish! Maybe you can raise the memory or time limit for PHP scripts. Learn more
    # The last known memory usage of the script was 21.75MB, the limit of your server is 64M.
    # The last known execution time of the script was 20.29 seconds, the limit of your server is 120 seconds.
    # The script stopped around post number 4932 (+/- 100)

    Any hint?

  • Checked out the debug log, seems timing out when notifying Ask about the update; I have removed any notification….

Leave a Reply to NeoEGM