Stop wpautop from running within shortcode.
-
Hello,
I’m currently having trouble with paragraph tags being added within the coding of a Nextgen gallery template I’m using.
https://tobylotak.com/gallerytest/
The first gallery there is all stacked vertically, and the template is not working. There are <p>s throughout the coding. View page source line 166.
I’ve got the RAWHTML plugin but I can’t use raw HTML or else the shortcode for the gallery doesn’t work. I’ve tried running it after shortcodes with the following `remove_filter( ‘the_content’, ‘wpautop’ );
add_filter( ‘the_content’, ‘wpautop’ , 99);
add_filter( ‘the_content’, ‘shortcode_unautop’,100 );`
But that doesn’t seem to help either. I tried some other version of a similar code workaround for loading wpautop after shortcode, but that didn’t do anything either.
Nothing seems to get rid of the P tags. I even tried the plugin “Remove P” but that didn’t do anything at all either. Please help!! I need to remove <p> on certain pages, but not my whole site.
- The topic ‘Stop wpautop from running within shortcode.’ is closed to new replies.