Home › Forums › Add-ons › Options Page › Combining ACF fields on save › Reply To: Combining ACF fields on save
If the field does not need to be editable, use standard WP function to update/get the meta value, no need for an ACF field. https://codex.wordpress.org/Function_Reference/update_post_meta https://developer.wordpress.org/reference/functions/get_post_meta/
however, I would not do this. I would assume that there is something in the post that relates that post to the user. When outputting the post I would look up the get the ID value and append it to the url generated by get_permalink() https://developer.wordpress.org/reference/functions/get_permalink/ rather than create and/or update a field holding a link to the page.
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.