Auto Publish Post Creates Duplicate Custom Fields
-
I have a fieldmap set up to push new Salesforce Opportunities to a WordPress Custom Post Type. This works and creates a post in draft mode.
I added the code to automatically publish the post (https://gist.github.com/jonathanstegall/5919e8dcf333336d625f8d87a870dcf5). However when I use this code snippet, it duplicates all the fields that are pushed from Salesforce. They are ACF fields, but I don’t think that matters because it’s pushing to the regular custom field name.
If I disable the code snippet and manually publish the post, the fields don’t get duplicated.
Would logging show me what’s happening during the post creation? I’ve enabled it and am waiting for an object to transfer.
The topic ‘Auto Publish Post Creates Duplicate Custom Fields’ is closed to new replies.