WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts Widget Extended
[resolved] WPML Support? (3 posts)

  1. ddalli
    Member
    Posted 1 year ago #

    Hey dev. team,

    I'm currently working on a site that leverages WPML (http://wpml.org/) to manage their support for six languages.

    Currently taking advantage of "Recent Posts Widget Extended" to display recent news posts on the homepage; however, these recent posts seem to be either only showing default language (EN) or all languages -- ie. changing languages has no affect on the posts displayed by this plugin.

    Any thoughts on how I may be able to introduce WPML support ~ so posts listed will only reflect the currently selected language?

    Thanks!

    http://wordpress.org/extend/plugins/recent-posts-widget-extended/

  2. ddalli
    Member
    Posted 1 year ago #

    WPML & Recent Posts Widget Extended users ~ for future reference:

    Since this plugin takes advantage of Transients API with cache life timer, and due to said caching (if enabled), the change of languages on the page (by a visitor) has no affect on the posts provided (for it is providing cached data, from the original/default language).

    To resolve this, within the widget panel, simply change the "Cache Life" from 42300 (default, 12 hours) to 1 (disabled).

    Now, when a visitor changes the site language, the posts provided will reflect that new language.

    [Easy enough.] Thanks for the solid plugin guys!

  3. Satrya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi @ddalli, in the next release I'll remove the caching system. It causing some issues with the plugin.

    Thanks for using our plugin ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic