maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration
http://python-wordpress-xmlrpc.rtfd.org
MIT License
383 stars 130 forks source link

Creating post with advanced custom field select type in custom fields dictionary #99

Open oberoc opened 8 years ago

oberoc commented 8 years ago

Using the python-xmlrpc, I'm wondering if I could somehow encode a select field in the custom_fields dictionary. The select fields are an advanced custom field plugin type https://www.advancedcustomfields.com/resources/select/ that I'm using right now. After new post with the acf select field is saved, select field look like this: event_series: [ "a:1:{i:0;s:10:"happy_hour";}" ], when dumped through a json plugin. I'm wondering if there is some way that I can construct a string on the python side and have it passed to wordpress to unaltered. Thanks in advance.

n3storm commented 7 years ago

Hi, that format you mention look like to me "php serialization" format. There is a python module that helps you with that. Hope it helps.