Articles

Remove P tag from Excerpt WordPress

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

Connect on Skype or Google+
A.Niraj Kumar’s Present Address
Siva Nagar
Marripalem
Visakhapatanam
530018, (Vizag)
Andhra Pradesh, India
Photo of A.Niraj Kumar

Call New York (USA): +1-(646)-666-9606
Call London (UK): +44-020-3290-9606
Call India: +91-9492247412 (Mobile)