exclude code from a single page
-
add_filter(‘the_content’, ‘remove_empty_p’, 20, 1);
function remove_empty_p($content){
if ( ! is_page( ‘ekpaideush’ ) ) {
$content = force_balance_tags($content);
}
return preg_replace(‘#<p>\s*+(<br\s*/*>)?\s*</p>#i’, ”, $content);
}hello is the code right ? can it exlude now the code from ekpaideush ? thanks a lot
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘exclude code from a single page’ is closed to new replies.