WP Realtime Sitemap
[resolved] WPML compatibility (9 posts)

  1. ArtGoddess
    Posted 4 years ago #


    I would like to know if it is possible to add WPML compatibility to your plugin?

    Now, in a multilingual site, custom post types are not filtered by language.

    Hope you consider this. Thank you.


  2. ArtGoddess
    Posted 4 years ago #


    Seems adding this in wp-realtime-sitemap.php

    line 1677: 'suppress_filters' => false in get_posts solves this.

    Please add it in future upgrades. Thank you!

  3. Kitefr
    Posted 4 years ago #

    I actually put the 'suppress_filters' part in the code for custom post types.

    But i read you make it compatible with WPML, how did you do so ?

    Thanks in advance ^^

  4. Kitefr
    Posted 4 years ago #

    Well i look into the code and it would be difficult to adjust it without entering deep inside... no ?

  5. ArtGoddess
    Posted 4 years ago #


    Just add in wp-realtime-sitemap.php file, line 1677, this code:

    'suppress_filters' => false

    It works for me.

    Let us know!

  6. Kitefr
    Posted 4 years ago #

    Yes it works !

    So i added it twice in the Posts part of the code for the regular posts to be compatible as well ^^

    Thanks !

  7. ArtGoddess
    Posted 4 years ago #

    Great! Thanks for your suggestion, there are two more "get_posts" in code.

    Hope the author applies the solution ina future update.


  8. Rincewind
    Plugin Author

    Posted 3 years ago #

    Just trying to implement this change, but you say to put it in the get_posts function?

    There is no mention of this on here.

    Are you sure that's where you put the code?

  9. ArtGoddess
    Posted 3 years ago #

    Hello Rincewind,

    I have added the code in lines: 1607, 1641 and 1679, always inside the get_posts array.

    Seems to work fine in my site: http://bit.ly/JMe7De

    WPML has a program where author plugins can ask for assistance in make their plugins WPML compatible.

    If you achieve the compatibility, your plugin can be shown here: http://wpml.org/documentation/essential-multilingual-plugins/

    I suppose the best thing you can do is to ask them directly.

    Please, let us know in this thread if this solution is valid.

    Thank you for your time and effort.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Realtime Sitemap
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.