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!
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.