Title: Adding content to custom fields using xmlrpc
Last modified: April 8, 2020

---

# Adding content to custom fields using xmlrpc

 *  Resolved [questionsolutions](https://wordpress.org/support/users/aliquam/)
 * (@aliquam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-content-to-custom-fields-using-xmlrpc/)
 * Hi,
 * Thank you for this awesome plugin. I was just wondering if it’s possible to add
   content to custom created fields using xmlrpc? I am able to add to taxonomies
   created, change to a custom post type but not to custom fields created/meta box
   fields.
 * Any help is very much appreciated.
 * Many thanks!

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

 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-content-to-custom-fields-using-xmlrpc/#post-12649082)
 * Hello [@aliquam](https://wordpress.org/support/users/aliquam/)
 * Perhaps this will help:
 * [https://wordpress.stackexchange.com/questions/166081/xmlrpc-and-underscored-custom-fields](https://wordpress.stackexchange.com/questions/166081/xmlrpc-and-underscored-custom-fields)
 * With best of wishes,
    Gabriel
 *  Thread Starter [questionsolutions](https://wordpress.org/support/users/aliquam/)
 * (@aliquam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-content-to-custom-fields-using-xmlrpc/#post-12657931)
 * [@gabrielberzescu](https://wordpress.org/support/users/gabrielberzescu/) Thank
   you very much. I did end up figuring it out, for anyone else that might come 
   across this, here is what I did using python.
 * You need to use the custom_fields and it’s set up as a dictionary. So an example
   would look like this. The slugs are found inside the WCK plugin for the ones 
   you created.
 *     ```
       my_blog = Client('http://myblog.com/xmlrpc.php','Username','Password')
       myposts=my_blog.call(posts.GetPosts())
       post.custom_fields = [{
                       'key': 'slug_1',
                       'value': 'This is what you want to put inside the section'
                               },
                       {
                       'key':'slug_2',
                       'value': 'this is where you put another thing'
                                      },
                       {
                       'key': 'slug_3',
                       'value': 'this is where you put another thing'
                               },
       post.id = my_blog.call(posts.NewPost(post))
       post.post_status = 'publish'
       my_blog.call(posts.EditPost(post.id, post)
       ```
   
 * Good luck!
    -  This reply was modified 6 years, 2 months ago by [questionsolutions](https://wordpress.org/support/users/aliquam/).
 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/adding-content-to-custom-fields-using-xmlrpc/#post-12665546)
 * Thanks [@aliquam](https://wordpress.org/support/users/aliquam/)
 * We appreciate this — cheers!

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

The topic ‘Adding content to custom fields using xmlrpc’ is closed to new replies.

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

## Tags

 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/adding-content-to-custom-fields-using-xmlrpc/#post-12665546)
 * Status: resolved