Home › Forums › Front-end Issues › get_field arbitrarily not returning value › Reply To: get_field arbitrarily not returning value
Updating to 5.5.8 – released today – seems to have fixed the issue, but answering anyway:
Registered users can create CPTs from a form on the front end. The line that attaches the custom field to the CPT is
update_field('field_561ef519ecce4', $_REQUEST['directory-link-source'], $post_id;
The site uses W3 Total Cache for caching but this problem happened when the plugin was disabled, however after I disable W3TC, I must disable ACF Pro before I am able to re-activate W3 TC.
I’ve spent way too much time on this issue to further nail down exactly what was going on. I’m just crossing my fingers. But if I can help solve a problem for someone else, I would be happy to to some tests to further isolate the problem.
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!
💻 The next ACF Chat Fridays features a live demo of one of our most highly-requested features: registering CPTs and custom taxonomies directly in ACF. Don’t miss it!— Advanced Custom Fields (@wp_acf) February 27, 2023
📆 Friday 3rd March 3pm UTC
👉 Register here - https://t.co/3UtvQbDwNm pic.twitter.com/j4r4ouQtz9
© 2023 Advanced Custom Fields.