Support

Account

Home Forums General Issues ACF and Polylang languages not shown

Solved

ACF and Polylang languages not shown

    • pureweb

    • October 13, 2016 at 5:53 am

    Hi,

    A few days ago I’ve installed ACF and Polylang on a new WordPress website.

    ACF version: 4.4.10
    Polylang: 2.0.5

    I find it strange that I’m not able to make different ACF groups per language?

    Now I remember that in the past when I did the same installation that I could just create other groups per language, I saw the flags of the languages I’ve created on the and of the group line.

    Am I missing something or is there no support anymore between ACF and Polylang?

    • James

    • October 13, 2016 at 2:43 pm

    Hi @pureweb

    I believe you should add ACF as the post type that needs to be translated. You should be able to do it like this:

    add_filter('pll_get_post_types', 'unset_cpt_pll', 10, 2);
    function unset_cpt_pll( $post_types, $is_settings ) {
    
        $post_types['acf'] = 'acf';
    
        return $post_types;
    }

    For further information, kindly get in touch with Polylang support.

    I hope this helps 🙂

    • pureweb

    • October 14, 2016 at 1:46 am

    Hi James,

    This worked thank you very much!

    Just to make sure, this piece of code needs to be placed in the functions.php file? I know it works but I don’t want my code to just hang around on wrong places…

    • James

    • October 14, 2016 at 11:38 am

    Hi @pureweb

    I’m sorry I forgot to let you know where to put it. Yes, you should put it in your functions.php file.

    Thanks 🙂

    • Murque

    • January 8, 2018 at 10:15 pm
    This reply has been marked as private.
  • Hi guys,
    5 years later….:-)
    Does this code still work? I’ve placed it in my functions.php, but I still can’t get the acf to translate to my 2nd language..!

    Any further help will be hugely appreciated!!!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.