Forum Replies Created
-
AuthorPosts
-
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’);Last question, sorry:
http://lagerlager.ch/boulderpirat/category/schwierigkeit/7c-nirvana/
I need to remove the shortcode also from the search results (see link above). I tried following:
function remove_shortcode_from_search($content) { if ( is_search() ) { $content = strip_shortcodes( $content ); } return $content; } add_filter('the_content', 'remove_shortcode_from_search');
.But it didn’t work..Last question, sorry:
http://lagerlager.ch/boulderpirat/category/schwierigkeit/7c-nirvana/
I need to remove the shortcode also from the search results (see link above). I tried following:
function remove_shortcode_from_search($content) { if ( is_search() ) { $content = strip_shortcodes( $content ); } return $content; } add_filter('the_content', 'remove_shortcode_from_search');
But it didn’t work…Thank you so much. Top support.
Bought now the Pro version.
Regards
Hi, thank you
i want the map to appear only on the single post page, not on the homepage. I tried to use the <!–more–> but it didn’t work. The post looks like this:
Intrinsicly visualize proactive human capital whereas synergistic best practices. Efficiently parallel task user-centric web-readiness with bleeding-edge infomediaries. Globally embrace out-of-the-box growth strategies with future-proof “outside the box” thinking.
<!–more–>
[mappress mapid="2"]
But as you can see, on the Homepage, the map appears on top (right after the title), but it shouldn’t be there at all….
-
AuthorPosts
