maxcutler / python-wordpress-xmlrpc

Python library for WordPress XML-RPC integration

Home Page:http://python-wordpress-xmlrpc.rtfd.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

oberoc opened this issue · 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.

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.