Home › Forums › ACF PRO › add hashtags automatically before posting › Reply To: add hashtags automatically before posting
I got there in the end.
In the ACF function I had, I updated the post but BEFORE that I created the publicize message (including hashtags) and inserted that into the right post meta:
// add the tags to the post title as $custom_message
update_post_meta( $post_id, '_wpas_mess', $custom_message );
// Update the post into the database
wp_update_post( $my_post );
And it works now.
Thanks for your help!
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.