Maybe I just don’t know how to use WP editor but for some reason Wordpress adds unwanted paragraph tag. The odd thing is that this empty p tag won’t show up in Firefox and IE but every other browsers show it and screw up the page.
If you’re building a theme, you don’t want to really strip out the user’s ability to use WordPress’s auto formatting. One thing you can do is create a shortcode your buyers can use to allow them to temporarily escape auto formatting.
If you're building a theme, you don't want to really strip out the user's ability to use WordPress's auto formatting. One thing you can do is create a shortcode your buyers can use to allow them to temporarily escape auto formatting.
Wow, removing autop is a sure way to make a few enemies. Unfortunately with removing the p tag, it also remove a lot of plugins ability to function properly.
Ive shifted between a few solutions over the last year or two, and none of them is perfect, but the one giving me most joy at present is listed below:
function croma_remove_empty_p($content) {
$array = array (
'
||+920754|Net-Labs said-||
Wow, removing autop is a sure way to make a few enemies. Unfortunately with removing the p tag, it also remove a lot of plugins ability to function properly.