i have a trouble. I tried to use too many plugins and funciont and also
remove_filter( 'the_content', 'wpautop' );
but it is not working.
I've added a shortcode into a text widget but wordpress add always tags p.
Why??
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityi have a trouble. I tried to use too many plugins and funciont and also
remove_filter( 'the_content', 'wpautop' );
but it is not working.
I've added a shortcode into a text widget but wordpress add always tags p.
Why??
WP's text widget doesn't run text through the_content
filter, it applies wpautop()
on saved text explicitly in code:
<div class="textwidget"><?php echo !empty( $instance['filter'] ) ? wpautop( $text ) : $text; ?></div>
This is controlled by aptly named "Automatically add paragraphs" setting at the bottom of the widget.