Custom Content Blocks and p tags
-
I’m building a couple of custom content blocks for WordPress ver 5+. WordPress is wrapping (or worse yet prepending) html <!—comments—> with p tags.
remove_filter( ‘the_content’, ‘wpautop’ );
seems to have no effect. How do I avoid this.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Content Blocks and p tags’ is closed to new replies.