Home › Forums › General Issues › add_action – acf/save_post + publish_post › Reply To: add_action – acf/save_post + publish_post
The post fields that you’re talking about are not fields but data in the post table. When using acf/save_post
you need to $post = get_post($post_id)
and then access the post information from there like $title = $post->post_title
. Or you can skip getting the post and use something like $title = get_the_title($post_id)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.