WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Like button language not correct (2 posts)

  1. lacanadienne58
    Member
    Posted 1 year ago #

    Hello,
    I had a 3 languages website, performed with Polylang plugin. I use Facebook plugin (Version 1.3.1) for like buttons on posts.
    After publishing a post in a language (for example german), like buttons (of any post on website) turn on in this language.

    http://www.coupes-moto-legende.fr/

    Thank you in advance.

    http://wordpress.org/extend/plugins/facebook/

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year ago #

    The Facebook plugin for WordPress matches the locale reported by your WordPress site with a valid Facebook locale to load the appropriate version of the Facebook JavaScript SDK and render social plugin buttons (Like, Send, etc.) in the appropriate language. The matched locale is stored as the fb_locale transient for 24 hours to prevent needing to remap a specified WordPress locale to a Facebook locale with each page load.

    You can override the response from get_transient using a pre transient filter to suit your six language use case.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic