Skip to:

Shortcode Not Working – wpautop breaking

  • jamesdonegan


    This is a little out of my technical depth, but I’ve been having issues displaying a Vimeography Pro gallery, and the plugin author told me the following (see below). I’m not sure how to fix it, though, as I can’t find the code to which he’s referring.

    Thanks for your help!

    The solution is to move the wpautop filter so that it’s run before the do_shortcode filter. Your theme possibly has the code shown below somewhere, a good place to start looking is the functions.php file then any shortcode related file, find this code and remove it.

    remove_filter( ‘the_content’, ‘wpautop’ ); 
    add_filter( ‘the_content’, ‘wpautop’ , 99 ); 
    add_filter( ‘the_content’, ‘shortcode_unautop’, 100 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode Not Working – wpautop breaking’ is closed to new replies.
Skip to toolbar