I try to insert around 2000 video-posts into WP. There is a custom field in the theme for the video-url, so I add the video-url to the post meta data with the corresponding field name. ACF seems not to be used by this theme (Edge, Journo).
This meta data shows up correctly in that field in the backend, however not in the frontend until I hit the update button for every post. After hitting the update button, everything works perfectly.
I tried so far:
wp_insert_post with a postarr containing ‘meta_input’
wp_insert_post followed by add_post_meta
different versions of creating the post as a draft and then use wp_publish_post at different times
Does anyone know which functions excactly are triggered by the update button?
Or other ideas?
Thanks in advance!