• Resolved 2cats

    (@2cats)


    I know you are being inundated with questions about the output code change and I wasn’t sure whether to piggyback on someone else’s post or add my own.

    I’ve been using <?php the_field(‘field_name’); ?> to retrieve fields. If I change this to: <?php echo wp_kses_post( get_field(‘field_name’) ); ?> does this do the trick?

    Additionally, I purchased the ACF Repeater plugin add-on many years ago and am still using it in combination with ACF on a number of old websites. Is the Repeater plugin going to continue to work after this update?

    Thanks for your help!

Viewing 1 replies (of 1 total)
  • Plugin Support ACF Support

    (@acfsupport)

    The repeater add-on plugin was discontinued a while back and hasn’t been updated in a while. It might stop working correctly in the future due to wordpress changes. Consider using ACF pro if you can.

    About the_field method, this has not yet been affected by the new changes in version 6.2.5 as stated here https://www.advancedcustomfields.com/blog/acf-6-2-5-security-release/ but it will also have its output sanitized in an upcoming future update 6.2.7 in February 2023.

    With the wp_kses_post function, you are sanitizing the output of get_field removing all HTML tags in the field’s value that aren’t allowed.

    If you need further clarification you can open a ticket with us here https://www.advancedcustomfields.com/support/

Viewing 1 replies (of 1 total)
  • The topic ‘Resolving ACF output code issue’ is closed to new replies.