Lab of Team Net World

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


<?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.


Tagged as: , , , , , , ,

Comments are closed.
This domain has recently been listed in the marketplace. Please click here to inquire.