python-wordpress-xmlrpc icon indicating copy to clipboard operation
python-wordpress-xmlrpc copied to clipboard

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

Open oberoc opened this issue 9 years ago • 1 comments

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.

oberoc avatar May 09 '16 17:05 oberoc

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.

n3storm avatar Jul 24 '17 10:07 n3storm