data import into select_advanced field
-
I have created a custom post type via a plugin using Meta Box (thanks so much for a great plugin!). In my current project, I’m exporting content from another CMS into WP using WP All Import and I’m struggling to get data into a select_advanced field.
This specific field relates this content to posts (multiple selections) of another custom post type. When entering the data via a normal post edit, the UI displays the content title, but the post ID gets stored in the DB. I assume the ID is what would be included in the actual POST variable upon saving the post, so I wrote an addon plugin for WP All Import to look up the IDs.
So, how can I actually inject data into this field? I have not been able to find clear documentation about this (very) specific situation. I have attempted a comma-separated string, an array and a serialized array (all using the IDs), but have been unsuccessful with them all. What is the proper data and format for this relationship data to be saved? Are there any gotchas you know about when using WP All Import to save into a select_advanced field?
Thanks so much for your help!
Brian
- The topic ‘data import into select_advanced field’ is closed to new replies.