You stated, “It is not that confusing, if it is a sub field then you are using the wrong function/method to update the value.” but it is. See below:
Name: FRESH SNOW SKI RESORTS”
In the above group I have FIELDS:
Name: FS SKI RESORT DATA (and it is defined as a group
In above, I have many sub fields and here is an example of one:
Field Name: qgis_aa_zoom
I assume field_64c782fc4c55d (qgis_aa_zoom) is a sub field, right?
Why does this work (although it does not show in the view as mentioned previously):
$result = update_field(field_64c782fc4c55d,11, 1110); $arraydata = get_field_object(field_64c782fc4c55d,1110); echo $arraydata['value'];
and this not work;
$result = update_sub_field(array('field_64b38c4e3ec56', 'field_64c782fc4c55d'), 3, 1110); $arraydata = get_field_object(field_64c782fc4c55d,1110); echo $arraydata['value'];
Is there any other way to post my php with out giving it to logged in users?
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!