WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ArtGoddess
    Member
    Posted 2 years ago #

    Hello,

    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.

    http://wordpress.org/extend/plugins/wp-realtime-sitemap/

  2. ArtGoddess
    Member
    Posted 2 years ago #

    Hello,

    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
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

  5. ArtGoddess
    Member
    Posted 2 years ago #

    Kitefr,

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

    'suppress_filters' => false

    It works for me.

    Let us know!

  6. Kitefr
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

    Hope the author applies the solution ina future update.

    Thanks!

  8. Rincewind
    Member
    Plugin Author

    Posted 1 year 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.
    http://codex.wordpress.org/Function_Reference/get_posts

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

  9. ArtGoddess
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.