I am trying to remove the shortcode from a specific post type, in this case link. I used this code on my functions.php but it removes the shortcode from the_content for every post type.

<?php
function remove_shortcodes( $content )
{
    return strip_shortcodes( $content );
}
add_filter( 'the_content', 'remove_shortcodes' );

is it possible to modify this so it only remove the shortcode from “Link” post type?

thanks

Read more here: Strip shortcode from specific post types (formats)


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , ,

Wordpress related questions and answers: