Home › Forums › ACF PRO › Turn off smart / curly quotes? › Reply To: Turn off smart / curly quotes?
Hm, ok, I found a solution in completely turning of wptexturize
sitewide with:
add_filter( 'run_wptexturize', '__return_false' );
which works but seems a bit heavy handed. In trying to find a way to target the WYSIWYG sub-field more precisely, I found this thread:
https://support.advancedcustomfields.com/forums/topic/remove-wysiwyg-wptexturize-filter/
Which suggests:
remove_filter ('acf_the_content', 'wptexturize');
Which isn’t working for me, I assume potentially because it is a repeater/subfield?
I’m also actually accessing the repeater by simply getting the entire repeater as a variable and accessing the text directly via the array, so I’m even more confused that the text is being filtered. (get_sub_field
or the_sub_field
result in the same curly quotes, however)
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!
Our guide looks into WordPress custom fields and how they stack up against the possibilities of ACF.
— Advanced Custom Fields (@wp_acf) July 18, 2022
https://t.co/hk3yibkHyk
© 2022 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.