• Hi,

    I figure out that this pluggin is compatible with ACF through the wpm-config but i don’t find any documentation of how it’s work.
    I do have a custom category field on my wordpress and i’d like them to be translated in the second language i am currently adding with WP Mulilang.
    In the admin, i can choose one or other language but if i change a text on my custom field i can find the change in both ??

    It’s on the front working if i put something like it : [:fr]fr text [:en] en text but i’d really like to have it working through the admin as i also have video for exemple i’d like to have different by language.
    Any help is welcome ??

    • This topic was modified 6 years, 10 months ago by neurone.
    • This topic was modified 6 years, 10 months ago by neurone.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @neurone
    You can add configuration for needed field in “post_fields” section in the wpm-config file. Examples of configurations you can see in config dir in root of the plugin.

    Thread Starter neurone

    (@neurone)

    Hi VaLeXar,

    Thanks for your reply. My field are not post field but category field (I add some second description and a video to each post category) and i don’t find in any exemple the correct way to put that in the wpm-config file…

    Create section ‘term_fields’ and add fields there. Example:

    
    {
      "term_fields": {
        "field_name_example": {}
      }
    }
    
    Thread Starter neurone

    (@neurone)

    That’s unfortunately not working … the only way to have it work is to put on the field my text in both language [:fr]fr text [:en] en text … not really user friendly unfortunately.

    Thread Starter neurone

    (@neurone)

    After looking on my DB, i find a solution which is to put this code :

    
    {
      "options": {
        "category_7_headline": {}
      }
    }
    

    The only problem is that i will have to create a line for each of my category (in this exemple it is working for the category id=7 only) … is it a generic rules which can work ?

    @neurone
    No. You can use tag “wpm_each” for apllying to each item in array.

    
    {
      "options": {
        "category_7_headline": {
          "wpm_each": {} //Apllying to each element in array
        }
      }
    }
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ACF documentation’ is closed to new replies.