Home › Forums › MapPress Support › Alignment With my Theme's Columns › Reply To: Alignment With my Theme's Columns
June 26, 2012 at 2:59 am
#9743
I used the shortcode strip
function remove_shortcode_from_index($content) { if ( is_home() ) { $content = strip_shortcodes( $content ); } return $content; } add_filter(‘the_content’, ‘remove_shortcode_from_index’);
and added is_category, now it works 🙂
function remove_shortcode_from_index($content) {
if ( is_home() || is_category() ) {
$content = strip_shortcodes( $content );
}
return $content;
}
add_filter(‘the_content’, ‘remove_shortcode_from_index’);