Hi, guys! Sorry for my bad english…
The second day I sit on the problem and I can not understand.
I’m trying to create a post with custom post type and attach it to the meta-data.
If I do not click “Publish” entry in the database record will be like that: http://clip2net.com/s/5r4DNy
After click “Publish”: http://clip2net.com/s/5r4EUM
How can I get this value “field_blahblah” for post_key before publishing my post?
I used the code to create a record: http://clip2net.com/s/5r4HjG
Hi @gruz0
You can use the function update_field as documented here:
http://www.advancedcustomfields.com/resources/functions/update_field/
You will need to find your field_key (see doc to find how), and use that to update the data instead of using the field_name.
Good luck