Hi guys I’m trying to restore a website and I would love to use ACF to handle the PAGE/Posts attachments in the new WordPress installation that will host the old content. I’m using a Python script to move the content from one website to the other one but I can’t figure it out how to structure the array of data of the ACF in a way that the new WordPress would recognize it:
post.custom_fields = [ {‘key’: ‘attached_files’, ‘value’: [{‘key’ :’ _file’, ‘value’: ??? }] }]
I’ve also asked this on stackoverflow https://stackoverflow.com/questions/50717603/wordpress-xml-rpc-acf-with-repeater
can you please explain me how do it? in the forum I can’t find that much tnx
Hi,
I got 50X statuses. They usually mean internal server errors. So I edited the data structure and included the ‘fields’ key before ‘allega_file’. I’m using ACF to REST API plugin:
https://github.com/airesvsg/acf-to-rest-api https://theessayservice.org