This might work for you, trying to hook early to the_content filter to strip the shortcode tag from it:
add_filter('the_content', 'ad_filter_the_content',1,1);
function ad_filter_the_content($content) {
// specify page id or array of page ids to include
if (is_page(5)) {
return str_replace('[orbit-slider category="test"]', '', $content);
}
return $content;
}
Related Posts:
- Error do_shortcode In WooCommerce Template
- Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes
- Print shortcode in defined area
- Adding a template part as part of a shortcode
- When are Shortcode Attributes Available in Template
- Getting Page Content Using Shortcode
- How to reload the shortcode content when the database is changing
- Iteratively add sub shortcodes to php array
- How to add a shortcode that creates an adjacent column of text in the content editor?
- Getting Shortcode Attributes befor content is displayed by the template
- my form does not insert any data in the database
- Use atributes of shortcode in get template part
- How to use multiple (or array) values in $content of shortcode?
- Shortcode or Template Page
- Create dynamic content from one WP page to multiple other pages
- Using shortcodes that wrap around code
- WordPress Shortcode loads at the top
- Enclose article’s body with default shortcode
- Create a shortcode to display the “the_content ()” in my post [closed]
- Custom shortcode with < in content
- wp:shortcode works in block theme template file but not PHP include file
- Enqueue Scripts / Styles when shortcode is present
- Wordspress add into my javascripts
- Using preg_replace to separate gallery from the_content?
- List of all inbuilt WordPress shortcodes
- Are php template shortcodes ok?
- How do I create shortcodes for my wordpress themes?
- Execute shortcode only in another shortcode
- do_shortcode based on _thumbnail_id
- Why does WP not like my container?
- Nested Shortcode Inside [caption] Doesn’t Process
- How can I get the [video] shortcode to allow query string parameters?
- Multiple loops on page only show taxonomy name of first loop
- Turn a snippet of HTML and PHP into a shortcode
- Using locate-template & shortcodes doesn’t appear to work
- How to put an “include” inside a “do_shortcode”?
- Changing playlist shortcode thumbnail sizes?
- What is the $atts parameter in shortcode_atts()?
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- Remove and restore one shortcode
- Rewriting WordPress Gallery Shortcode with Bootstrap Carousel
- other shortcodes in Contact form 7 MAILS [closed]
- Using ACF field in do_shortcode()
- Display content from another site page using a shortcode
- Combining similar shortcode functions?
- Creating a shortcode based on users preferences
- Get a post’s thumbnail url or display default image in shortcode
- basic shortcode – Why 1st paragraph not wrapped in p tag, but 2nd is
- Convert HTML Script to Shortcode [closed]
- Registration Form Shortcode
- Include tags in the body of a post
- Remove shortcodes that are different (but same pattern) in each post
- Place a URL parameter value inside a WordPress short code
- Conditionally Loading JavaScript/CSS for Shortcodes
- Make a Shortcode load after Post/Page Content?
- Adding JS in header when using wp_enqueue_script in a shortcode
- How to explode single string IF it’s used in shortcode
- How to dynamically add wordpress shortcodes
- shortcode with conditional results if logged in
- Can I pass parameters to the add_shortcode() function?
- Hijack WordPress Shortcode attribute
- Turning variable into a value set in shortcode
- How to include any template using Shortcode fuction?
- how can I change my font color for Shortcode [closed]
- tax query shortcode
- Create a function to display HTML/data based on site admins role?
- AJAX and do_shortcode
- FontAwesome Shortcode isn’t working properly
- How can I extract a word from page/post URL using shortcodes
- Custom user registration shortcode – redirect header issue
- Call Shortcode on wp_footer
- Shortcode question…. javascript
- Shortcode / plugin with custom (flexible) output
- Adding shortcode of “Random Content” Plugin in the post after the title
- Variable inside shortcode or shortcode inside shortcode
- From a shortcode I want to pass a value to display a different page
- Shortcode select another dbbase
- How to use code in an editor block?
- return an array with a shortcode
- Hide password protected dynamic content in templates via shortcode
- Shortcode callback not called
- Shortcode not interpreted if parameter set
- Can we add a single caption to the gallery shortcode?
- Shortcode Attribute contains clone of all shortcode attributes
- How to echo an array returned by a function
- Custom Login in Shortcode got error
- Creating custom shortcode
- What is short code for following?
- Created a shortcode, using it twice (but differently) on a page but its just outputting the same one twice
- Access Shortcode in ajax code?
- Overwriting a Shortcode
- Automate post creation in wordpress
- How to print [embed] code in wordpress [duplicate]
- Shortcode append to the the_content()
- How to call shortcode on button click
- How can you alter the name of attributes in a shortcode?
- Working with Shortcode, AJAX, Elementor
- How to exclude some cats from wp_list_categories using shortcut
- How can I create a shortcode that shows a list of categories on the single product page?
- Array to String Conversion warning in shortcode