Last active
November 2, 2018 05:56
-
-
Save interactiveRob/1ff893ef9d1bfcf3fbdd28f5244347c9 to your computer and use it in GitHub Desktop.
Remove WP Auto paragraph tags in ACF content
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* preg replace removes extra <p> tags from Wordpress' WYSIWYG editor*/ | |
| $hero_headline = preg_replace('/<\/?p>/', '', get_field('hero_headline')); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment