AGREE Thomas – It would be very helpful if the notice in the backend disappeared once the code was fixed!
Gotcha, did not realize that. Would be nice if ACF could also “restore it” also then, though I’m sure there’s a good reason why not. Appreciate the response.
That works – thank you John, appreciated
I sometimes use ACF options page to store Google Analytics code, output with the_field(). Is there a way to bypass the additional check?
Thanks, John. I didn’t change anything, but after reading your response and reading more about capabilities I realized a previous plugin may have changed the permissions. I installed a free plugin called “Reset Roles and Capabilities”, and the problem was fixed.
John – is there any way to INCLUDE the parent category in the list?
John, thanks for the response. I read through the link you provided and worked it out! In my case, I was able to add the following code, and because I linked it to the key of the field, it only affected that one set of radio buttons. Perfect! Here’s my code:
add_filter(‘acf/fields/taxonomy/wp_list_categories/key=field_69ee9943be86f’, ‘my_acf_fields_taxonomy_query’, 10, 2);
function my_acf_fields_taxonomy_query( $args, $field ) {
// Order by most used.
$args[‘child_of’] = ’14’;
$args[‘orderby’] = ‘title’;
$args[‘order’] = ‘ASC’;
return $args;
}
Never mind – I worked it out.
First:
$catarray = get_sub_field(‘categories’);
then:
‘category__in’ => $catarray,
I’m also seeing that “Enable auto-updates” is not an option with ACF Pro. Is there a way to enable this? Ty
Yep – we just updated WP and preview is not showing ACF fields anymore. Please fix!
jay.tell, sorry, I never did find a solution, so just chose to leave as is. Very frustrating.
Completely off topic, but I’ve just come across another bug that I don’t quite fully understand too – where a repeater field ends up populating other similar repeater fields on the page with the same value, and cannot be deleted. I mention only to say that ACF “just works” 99% of the time, but damn it’s frustrating as heck when it doesn’t.
natekinkead – I was hoping your tutorial would work, however, it appears it is only for parent fields? In my case, I was wanting to rename a “layout” field within a “flexible content” field type. I get the same result (modules disappear if I rename, reappear if I revert) but I don’t believe these “field names within a field”are stored in the same way?
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.