Hi Trishah,
Thanks for reaching out to us.
We understand this has been a recurring request, but at this time, ACF doesn’t offer a built-in way to change the “Add to Gallery” button text in the admin. As a workaround, you can use jQuery to target and modify the button label directly in the admin interface.
We’ve shared this feedback with our team for consideration in future updates.
Best regards,
ACF Support
Hi @qwik3r
Please take a look at the below example on how to separate the string values:
<?php
// vars
$contact_address = get_field('business_google_map', 'option');
?>
<?php $address = explode( "," , $contact_address['address']);
echo $address[0].', '; //street number
echo $address[1].', '; //city
echo substr($address[2],0,3).substr($address[2],3,6); //state + zip
?>
Hi @qwik3r
Here is some code that you could use to separate the values from the string:
<?php
// vars
$contact_address = get_field('business_google_map', 'option');
?>
<?php $address = explode( "," , $contact_address['address']);
echo $address[0].', '; //street number
echo $address[1].', '; //city
echo substr($address[2],0,3).substr($address[2],3,6); //state + zip
?>
Hi @lee-harvey
I am not sure that I have fully understood the description, is this what you are after?
<?php if (get_field('q1_answer') == 'Yes') {
$value = "1";
} ?>
Hi @robtown
I do not think that this would affect the saving of fields.
Please check whether renaming this field will report the same behavior since it is likely that the issue is stemming from a naming conflict.
Hi @raulgc87
This could be stemming from server configuration settings.
It is recommended to run at least PHP 7.2 for WordPress 5.x.x to run smoothly and you may have to update if your server is running an older version.
HI @cyril_b
This may suggest that there is a conflict with one of your installed plugins that might have been triggered by a recent update.
Please make use of this plugin to troubleshoot https://wordpress.org/plugins/health-check/ and to help in isolating the culprit.
ACF would be a great fit for this requirement. You can create a repeater field nested with a text, text are and Google maps fields that will then make it possible to enter rows of the itinerary data.
Please take a look at this resource page for more info on this: https://www.advancedcustomfields.com/resources/repeater/
Hi @moonshdw8
You can limit the number of rows to be added to the repeater by setting the maximum rows option from the field group edit page.
Hope this helps.
Hi @szepeviktor
Thanks for reaching out to us.
Unfortunately, I’m afraid your question is not quite clear.
Kindly explain to me more on what you mean by “Strongly Types” Values.
Hope to hear from you soon.
Hi @howdy_mcgee
I would suggest that you create a support ticket via https://support.advancedcustomfields.com/new-ticket/ so that this can get to the plugin author.
Hi @pooya
You can make use of the get_field_objects() function to step through all the fields and display the ones that match your class like so:
<?php
$fields = get_field_objects();
if( $fields ): ?>
<ul>
<?php foreach( $fields as $field ): ?>
<?php if($field['wrapper']['class'] =='your_class'){
//do something here
} ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
Hi @fultonman
Is it possible that one of your two subfields is returning an array and not a string?
Could you debug the output from your repeater rows using var_dump() function?
Hi @apmeyer
Please open a new ticket via https://support.advancedcustomfields.com/new-ticket/ to ensure that this gets to the plugin author 🙂
Hi @alhoseay
Please open a new ticket via https://support.advancedcustomfields.com/new-ticket/ to ensure that this gets to the plugin author 🙂
Hi @nathan005
Please open a new ticket via https://support.advancedcustomfields.com/new-ticket/ to ensure that this gets to the plugin author 🙂
Hi @3antz
Yes this is possible with ACF, you can make use of the location rules to assign a field group to the orders post type.
You will then need to find a suitable filter on this page https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/ to hook into inorder to display the fields on the orders page using the ACF functions the_field() and get_field().
Hi @joshuaisaac
This plugin maybe able to help in this https://wordpress.org/plugins/acf-better-search/
Hi @lsterling03
This is because multiple select field save data as a serialized array unlike standard text fields. The field reference will be useful for formatting the value.
Hi there,
The above code should be able to update the value but the post will need to be published for the change to take effect.
Hi @mmc
I suspect that you may be running an outdated ACF version.
Please update the latest version to access all the options.
Hi @phil-owen
If you are using the latest version of the plugin, you need to change your syntax to the following:
$name = $_POST['acf']['field_57c072a1a59c4'];
You may also want to hook into the acf/save_post filter instead of the acf/pre_save_post.
You can also change the slug by making use of the ‘post_name’ argument when generating the $post data.
I hope this info helps.
Hi @mito
You can fix this by adding a second location rule to the field group
Current user == Viewing back end as shown below:
I hope this info helps.
Thank you for the offer, but I don’t offer private consultancy.
I can recommend that you reach out to the seasoned team at https://codeable.io/partners/acf/?ref=RJHO6
Hi @tpodgro
Please open a new ticket at https://www.advancedcustomfields.com/contact/ and share some temporary admin access so that the team can check this issue for you.
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.