WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] Compability with Polylang plugin (9 posts)

  1. jussi.r
    Member
    Posted 1 year ago #

    Hey,

    I'm using Polylang 0.9.5 at our customer's WordPress site. Its a multi-language plugin. The custom fields are not shown in the editor if user hasn't selected "Show all languages" from top menu.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. Chouby
    Member
    Posted 1 year ago #

    Could you try with the current development version of Polylang (0.9.6.1)?
    http://downloads.wordpress.org/plugin/polylang.zip

  3. jussi.r
    Member
    Posted 1 year ago #

    It works now!

  4. jussi.r
    Member
    Posted 1 year ago #

    Nvm It doesn't work anymore or I didnt't test very well... Now I can see the custom fields with default language and show all languages only.

  5. Chouby
    Member
    Posted 1 year ago #

    I came back on this and obviously the correction was not complete :(
    Could you try with the even newer development version (0.9.6.2)?
    http://downloads.wordpress.org/plugin/polylang.zip

  6. jussi.r
    Member
    Posted 1 year ago #

    Sorry, I didn't see you answered. I can't try that development version right now but I have version 0.9.8 at the moment and the bug still exists.

  7. Chouby
    Member
    Posted 1 year ago #

    Could you try to add these lines of code in a custom plugin?

    add_filter ('pll_get_post_types', 'do_not_translate_acf');
    function do_not_translate_acf($post_types) {
    	unset ($post_types['acf']);
    	return $post_types;
    }
  8. jussi.r
    Member
    Posted 1 year ago #

    In which file I should add those lines?

  9. Chouby
    Member
    Posted 1 year ago #

    Nowhere. This code is now useless in Polylang 1.0.x. Just go the Polylang settings and uncheck the custom post type 'fields group' (if it is).

    And you should also uncheck the synchronization for custom fields as it currently breaks Advanced Custom Fields (this should be OK in the future version 1.0.2).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags