I am having issue with reading/updating field values when creating new post.
Reading only work if i manually click Save Draft then publish while update_fields doesn’t work at all. The first argument is already field key instead of name. Other coding not related to fields are working fine.
The same code inside the function if copied to page template works flawlessly.
Is this a known behaviour or do i missed anything?