
You cannot do this
$rows = get_field('criteria_details');
loop over this array and then attempt to use get_sub_field() on a nested repeater
if (have_foes('files', $row);
$row in the above case has no meaning to ACF.
You must either
1) Use a have_rows() loop for both the parent and child repeaters
2) Access the sub repeater in the original array $row['files'];

ACF is not checking your templates for the use of specific functions for specific fields.
ACF is not checking to see if you’re using shortcodes for specific fields.
ACF has no idea if there is actually a problem or not.
ACF is simply looking at the content on a given page when you load the admin and comparing the content before and after applying wp_kses() to see if they are different.
Altering your code on the site will not change the fact that you have content in your database that will be altered by wp_kses().
The warning is so that you know there is a difference and do something to prevent the altering of your content by wp_kses() before they release the version that will actually alter that content so that you can prevent your site from breaking when that update is released.

I don’t see any reason why the code for your column content should not be working.

as in ‚d.'
I think you might want to contact support about this because it might be an error. If there is an ' in the formatting this might be changed to ' It it is a curly single quote that could also me altered to an html entity when escaped. This minor change could be triggering the warning.
I say this because there was another reported case where & in the field content was triggering the warning.

A date field should not be causing an issue. What is the return format for the date field?

I have not seen these warnings myself.
What page are you on when you see the warning?
Do these warnings appear on the page that you’re editing?
Can you tell me the contents of the field that is giving the warning?

It will have no effect on text based fields. This will only cause an issue if you have HTML or script tags in the field value that would be affected by wp_kses()

@austriadesign there is nothing that can be done to prevent ACF from escaping values when using the ACF shortcode.
If you have values in these fields that you don’t want to be cleaned then you will need to build your own shortcode that uses get_field() to get the value and echo it to bypass ACF.

No, will act as though it was
esc_html( wp_kses( the_field('headline') ) );

You need to include $post_id when calling the function in this case
get_field_object('field_5b0be1c83f5b4', $post_id)

There really is not step-by-step instructions. If you theme was custom coded using ACF you need to search all of the theme files for calls to the_field() and the_sub_field(). If these functions are used and it is on a field where you do not want ACF to remove something then you must replace these function calls with the alternative get_field() and get_sub_field() function calls.
replace
the_field(...);
with
echo get_field(...);
replace
the_sub_field(...);
with
echo get_sub_field(...);

No, it needs to be done using a cron as the OP posted, otherwise it would need to happen on every page load on your site and that would not be a good practice as it could impact performance significantly.

Sorry to say but, yes, it really is that complicated to use ACF with the block editor.
Another way that you can display field without needing to add ACF blocks is to build custom shortcodes and then use a shortcode block. With a custom shortcode you can do more than simply display the content of a field, you could include all the HTML and content in any way that you want it output.

If you’re using the_field() or the_sub_field() no changes are needed to escape values, see the announcement https://www.advancedcustomfields.com/blog/acf-6-2-5-security-release/.

Not something you can do without some coding. Possibly a lot of coding dependent on how far you want to take it. This topic is too complex to help here
You should look at some of these [SEARCH RESULTS].
Look that this one specifically if you also want to change the permalinks of these child posts https://1fix.io/blog/2016/02/05/parent-from-another-cpt/

There was a similar question asked here https://support.advancedcustomfields.com/forums/topic/devel-for-staging-development-sites/
This would be up to the developers. The developers do not visit or monitor this site on a regular bases and this forum is basically just other users answering questions when they can.


I forgot the semi-colon on the line, should be
return $value;


You need to add the post ID to the get_field_object() call just like you’ve added it to this line in your other code.
$repeater = get_field('invoices', 'user_' . $current_user->ID);

Since this is new it is unlikely that another user can help you. I suggest contacting the devs or opening a ticking on your account.

This is only the case if the developer used the_field() and the_sub_field() to output field values. It is not the case if the developer used get_field() and get_sub_field().

In most cases that is how it works with dev => staging => production. You don’t actually make changes to the productions site, in some cases in some environments it is impossible to make changes directly to the code on the live site.
Quite frankly, I find it a PITA as well, but I do work on some sites that are on systems that require this.
1) You perform updates and coding changes on the dev site
2) You pull code changes to the staging site from the dev site and db from the live to test
3) Finally you pull code changes to the live site.
However, you could simply install a plugin like https://wordpress.org/plugins/download-plugins-dashboard/ and just download them from ACF from the dev site and upload it to the other two sites. For several versions of WP it now detects that you are uploading a plugin that is already installed and prompts you replace it with the new upload.

Well, now that I’ve thought about it, there are some way to only have ACF active on the dev and update the staging and live site, but you did not really say how you were pushing code changes to from dev => staging => live. If you explain that I might be able to give you a solution to work around it.

Use get_field() instead
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.