# Remove P tag from Excerpt WordPress

URL: https://anirajkumar.com/technology/wordpress-developer/remove-p-tag-from-excerpt-wordpress/
Modified: 2010-08-29T21:31:52+05:30

So you want to know how to remove

TAG from **WordPress Excerpt** (the_exceprt) or WordPress Post Content Function (the_content). Yes it is tooo simple. You just need to add the following line of code your functions.php in themes folder.  
 Path to functions.php is wp-content –> themes –> {YOUR THEME NAME} –> functions.php

SOLUTION:

```
<?php remove_filter('the_excerpt', 'wpautop'); ?>
```

I am sure this will be useful for you. But in case you are looking for any custom WordPress Solution developed. Please do call me up or REQUEST A QUOTE.

cheers!  
 A.Niraj Kumar, A WordPress Expert
