• Resolved dropincentre

    (@dropincentre)


    I mainly use the code editor and have wordpress set to not add P tags on anything using remove_filter ('the_content', 'wpautop');

    However, whenever save and add a template P tags wrap around every line of the code.

    I think this has something to do with the preview being viewed in the visual editor before insertion, but am not sure how to get around.

    Any advice would be appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter dropincentre

    (@dropincentre)

    
    'content'      => wpautop( $content ),
    'preview'      => $preview,
    'is_shortcode' => $p['is_shortcode'],
    

    For anyone else having this issue, make a copy of tinymce-templates.php in your child theme and remove the wpautop function from the “content”

    • This reply was modified 5 years, 7 months ago by dropincentre.
Viewing 1 replies (of 1 total)
  • The topic ‘Templates adding tags’ is closed to new replies.