Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/WP/Remove Paragraphs From Content

August 11, 2014

Remove Paragraphs From Content

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

Sign up

Get content delivered to your mail!

About Me

I'm Ulysses, a Cloud Engineer at Cardinal Health based in Columbus, Ohio. I’m a certified AWS Solutions Architect. This website is my way of documenting the things I've learned about the Cloud. When off the grid, I enjoy riding my electric skateboard. I've surfed, snowboarded and played saxophone in the past. I hope you find this site helpful. It's powered by WordPress and hosted in AWS.

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021