• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Remove Paragraphs From Content

August 11, 2014

Here’s a really easy way on how to remove paragraphs orĀ <p></p> from the WordPress content.

In the WordPress loop, look for the code ‘the_content().’ Add this command just before it:

remove_filter ('the_content', 'wpautop');
the_content();

remove_filter ('the_content', 'wpautop'); the_content();

That essentially removes all the paragraphs from the WordPress content.

Filed Under: WP Tagged With: remove paragraphs

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023