
Did they mean to post here or to post this on the feedback page https://www.advancedcustomfields.com/feedback/
This is a user forum and the developers do not monitor them as a general rule, I don’t think anyone here will be about to help you with this.

I’m trying to see if ACF is formatting the value of $field[‘value’];
add_filter('acf/format_value/name=myfield', 'my_format_checkbox_field_function', 20, 3);
function my_format_checkbox_field_function($value, $post_id, $field) {
$value = $field['value'];
// return the value here so you can see what it is
// this is temporary, let me know what gets output to the page
return $value
$values = array();
foreach ($value as $item) {
if (isset($field['choices'][$item])) {
$values[] = $field['choices'][ $item ];
} else {
$values[] = $item;
}
}
$value = implode('<br>', $values);
return $value;
}

This is not a question for the user forum. You would need to contact the developers.

The developers to not monitor these forums. If you want to make a feature request you need to contact them, open a ticket in your account, or add to the feedback page.

It likely means that there is something in your field that would be removed by wp_kses().
See this document that explains what it’s doing and how you can modify how it does it https://www.advancedcustomfields.com/resources/html-escaping/
This is just a guess on my part, if you want a definitive answer you should open a ticket on your account to ask the developer.

If it were me I would alter the function you posted to set up the field group args, then add a call to a filter to allow modification in the child themes functions.php file and then call acf_add_local_field_group();
function () {
$args = array(/*field group settings*/);
apply_filters('my-theme-name-my-field-group-name', $args);
acf_add_local_field_group($args);
}
then in the child them you can add
add_filter('my-theme-name-my-field-group-name', 'child_theme_function', 10, 1);
function child_theme_function($args) {
// modify args
return $args;
}

How are the field groups added? PHP? JSON? something else?

The only thing that I can think of is that $field['value'] has already been formatted and is not the expected array. To test this modify the start of the filter to
$value = $field['value'];
return $value;
and see what happens.

What page builder is that? Does it support ACF repeater fields? What you use and how you use it depends on what the page builder supports. You should be referring to the documentation for the page builder.

What are you using to display the content of the repeater?
Please explain

You initialize the counter before you’re loop. You put the if statement at the start of your loop. You increment the counter at the end of the loop.
This will show the first X items set by the if statement. Since you are reversing the order of the repeater this means it will show the last X items in reverse order. You can set X for whatever number you want to show. It will show up to that number, so if there are only 2 items then it would only show 2.

Yes, that is correct. Either you have not value in the post or ACF does not know what post to get the values from.
Where is the value added? Are you trying to get the value from the current post being displayed? Need more information on the field setup and how you are trying to use it.

The developers and people that control your ACF account dashboard do not monitor this forum. You need to add a ticket in your account to get a response from them about this.

If you want to use some fields and not others then you have two choices, both involve creating a second field group
1) Create a new field group with all new fields for the second CPT
2) Create a second field group and clone the fields that you want from the first group.
With just 1 field to be used I would go with option 1.

Have you added acf_form_head()?

A featured image in WP is set by setting the meta_key ‘_thumbnail_id’ in for the post to the ID of an image in the media folder. There is not a way to set the featured image using a URL it the image is not imported into media.
It might be possible to add filters to all of the WP functions the get and/or display the featured image to replace the URL in some places. If this can be done would depend on what the theme is using to display the featured image and adding filters to your functions.php file to modify the return for those functions.

// initialize a counter
$counter = 0;
foreach ($repeater as $i => $row) {
if ($counter == 3) {
break;
}
// output row
// increment counter
$counter++;
}

The only way to do this would be to code an acf/format_value filter.
add_filter('acf/format_value/name=myfield', 'my_format_checkbox_field_function', 20, 3);
function my_format_checkbox_field_function($value, $post_id, $field) {
$value = $field['value'];
$values = array();
foreach ($value as $item) {
if (isset($field['choices'][$item])) {
$values[] = $field['choices'][ $item ];
} else {
$values[] = $item;
}
}
$value = implode('<br>', $values);
return $value;
}

You have to have elementor pro and use a posts widget and do a custom query.
https://developers.elementor.com/docs/hooks/custom-query-filter/

If you’re not coding the templates then the only way to alter that will be use an acf/format_value filter for the field and the php number_format() function in that filter.

This is because you are using the WP block editor, aka guberbug gutenberg. These are known issues. Sorry I don’t have any links at the moment.

My best guess.
$date = get_field('fecha_nacimiento_obituario_gratis;);
$date1 = get_field('fecha_def_obituarios_gratis');
$birthday = DateTime::createFromFormat('d/m/Y', $date);
$decease = DateTime::createFromFormat('d/m/Y', $date1);
$interval = $birthday->diff($decease);
echo $interval->y.’ Años’;

The problem is not with the query, the problem is with the field names. A query that searches repeaters and also matches rows on a repeater is impossible.
The meta names of repeaters are "{$repeater_name}_{$row_index}_{$sub_field_name}"
The documentation and function/filter you are using causes the query to ignore the {$row_index} so if any row has a matching value in the first sub field and any other row has a matching value in the other sub field then the post will match.
The only work around that I have ever found is to use an acf/save_post action to get the values of the repeater and I store a multidimensional array in a WP option. Each element of the array is associated with the post. then I search the multidimensional array to locate the post IDs that need to be retrieved.
$option = array(
// nested array for each post
$post_id => array(
// nested array of values for each row of the repeater
array(
// field name => value pairs for each row
'field_name_1' => 'value_1',
'field_name_2' => 'value_2'
)
)
)

You need to search the code on the site. More than likely there is a filter that is automatically adding the rows when the repeater value is loaded. It could be on the hooks acf/load_value. acf/load_field or acf/prepare_field. There might be others. This is the only way that rows could be automatically added when the repeater field settings does not have a minimum number of rows. I would search the theme for all ACF hooks to see what I could find, but I can’t really tell you exactly what to search for.
The previous developer must have had a reason for doing this. I would also be looking at the code to figure out why. Removing them might cause errors depending on how it is coded.

What happens when you try to delete them?
Did you build the site?
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.