Reply To: Alignment With my Theme's Columns

Home Forums MapPress Support Alignment With my Theme's Columns Reply To: Alignment With my Theme's Columns

#9743
quentro
Participant

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’);