Title: Multilang for &#8216;Add_setting_field&#8217; function
Last modified: November 22, 2017

---

# Multilang for ‘Add_setting_field’ function

 *  Resolved [natalarionova](https://wordpress.org/support/users/natalarionova/)
 * (@natalarionova)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/)
 * Hi [@valexar](https://wordpress.org/support/users/valexar/)!
 * I am trying to create right ‘wpm-config.json’, but I didn’t find examples for
   my case. Could you help me with advise, please?
 * I use WP ‘Add_setting_field’ function, so I have some new options. All of these
   options are text-inputs.
 * When I edit the values on these pages:
    /wp-admin/options-general.php?edit_lang
   =ru /wp-admin/options-general.php?edit_lang=de /wp-admin/options-general.php?
   edit_lang=en the values are the same for different languages.
 * I use WP theme – twentyseventeen.
    So I put ‘wpm-config.json’ to the root of 
   my theme with text:
 *     ```
       {
       "options": {
       "theme_mods_twentyseeventeen":{
       "questions": {}
       }
       }
       }
       ```
   
 * But it doesn’t work, I can’t understand what’s wrong.
 * [@valexar](https://wordpress.org/support/users/valexar/), I hope you can help
   me. Thank you

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [VaLeXaR](https://wordpress.org/support/users/valexar/)
 * (@valexar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/#post-9712879)
 * Right name is ‘theme_mods_twentyseventeen’.
 *  Thread Starter [natalarionova](https://wordpress.org/support/users/natalarionova/)
 * (@natalarionova)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/#post-9713032)
 * I’m sorry, it was mistake.
 * I have this code:
 *     ```
       {
       "options": {
       "theme_mods_twentyseventeen":{
       "questions": {}
       }
       }
       }
       ```
   
 * “questions” – name of my text-input
 *  [VaLeXaR](https://wordpress.org/support/users/valexar/)
 * (@valexar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/#post-9713350)
 * Option ‘theme_mods_themename’ using for adding theme fields in customizer. And
   then get it on ‘get_theme_mod()’ function. Maybe You doing something wrong?
    
   Pege options-general has nothing to do with it.
 *  Thread Starter [natalarionova](https://wordpress.org/support/users/natalarionova/)
 * (@natalarionova)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/#post-9716660)
 * I didn’t know about differences between ‘register_setting()’ and ‘set_theme_mod()’(
   sorry, I’m new at WordPress)
 * So, I’ve changed config:
 *     ```
       {
       "options": {
       "questions": {}
       }
       }
       ```
   
 * and everything became OK. Thanks [@valexar](https://wordpress.org/support/users/valexar/)
   for the clue
 *  [VaLeXaR](https://wordpress.org/support/users/valexar/)
 * (@valexar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/#post-9717313)
 * Ok. I will mark it question as solved.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Multilang for ‘Add_setting_field’ function’ is closed to new replies.

 * ![](https://ps.w.org/wp-multilang/assets/icon-256x256.png?rev=1760406)
 * [WP Multilang - Translation and Multilingual Plugin](https://wordpress.org/plugins/wp-multilang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-multilang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-multilang/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-multilang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-multilang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-multilang/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [VaLeXaR](https://wordpress.org/support/users/valexar/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/multilang-for-add_setting_field-function/#post-9717313)
 * Status: resolved