Unmodified do_shortcode
is effectively a filter on the_content
with priority 11. Your filter has priority 10. So it runs before the shortcode is evaluated and it won’t affect the post you put inside your page with a shortcode.
Now, you would think that the filter should also be triggered when the post inside the page is retrieved. This, however, is not necessarily true. The filter is only triggered when the content is retrieved with the_content
, not with get_the_content
.
Depending on what your modifications are, you may get the desired result if you set the priority on your filter to 99 or so, forcing the shortcode to be evaluated before the filter is applied.
Related Posts:
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Caption Shortcode: what filter to change the image size?
- PHP error with shortcode handler from a class
- How can I load a page template from a plugin?
- Optimize shortcode callbacks
- Using query_vars filter
- How to get Post ID with the Add Filter Function
- Are shortcodes case-sensitive?
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- How do I Make a Theme “plugin-ready”?
- How do I make specific plugin functionality apply to different sites in a network?
- How to modify post content before writing to database?
- Display only certain posts based on visitor’s country?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Conditional add_filter?
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- Is it possible to create an action hook using do_action() within add_action()?
- Dynamically Override Fancy Title
- How to allow Unfiltered HTML in a wordpress multisite install
- Changing bloginfo description from a plugin
- Is there a way to verified if an add_filter is already applied?
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- multiple functions with same filter
- How can I render shortcode so that its not cached by Caching plugins?
- Woocommerce – Hide a Column in Cart Table
- Processing shortcodes in groups (separated by line breaks)?
- add_filter : Passing an array instead of the callback function?
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- Namespaced action and filter tags
- Two functions utilizing registration_errors filter
- Is there a Filter that I can use to filter the tags before they are inserted in to the database?
- WordPress is automatically linking plain text email addresses
- Creating a shortcode, but getting tied up with OOP and Classes?
- What is the best way to embed an JS App in a WordPress Page?
- Auto gallery from folder contents
- Secure Pages Best Practice
- add_shortcode() not working inside of function
- Why doesn’t my simple the_title filter get applied?
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- Can’t get woocommerce_get_price_html to work [closed]
- Search and Filter
- Custom login doesn’t work properly
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Run Shortcode of post’s custom field in functions.php / Plugin
- WordPress custom taxonomy check box to dropdown
- Using ob_get_content to get_search_form puts into infinite loop
- Wrap text around shortcode
- wp_nonce_field displaying twice
- Redirect to another page using contact form 7? [closed]
- How to handle shortcodes through plugin
- Using a custom shortcode from within the template of a shortcode plugin
- When echoing my own shortcode, it keeps adding a 1 at the end of my blogpost
- Remove an action by extending class and replacing it
- Automating the process of shortcode generation in a plugin – how is it done?
- Create Widget or Enable Shortcodes in Sidebar
- Call to undefined function is_home() or any conditional tags
- shortcode executed in the page editor
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- How to create ShortCode
- add_filter img_caption_shortcode not implemented
- shortcode tags not working in do_shortcode
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- How to insert HTML/CSS/JS into my iframe plugin?
- WP_NAV_MENU filter targets all menus
- Form submission to another page returning 404 error [duplicate]
- How do i remove the title from a specific page
- Is there an action_filter hook to add content before the post title?
- Adding tables to dashboard pages programmatically?
- Font size of HTML content
- Cannot output plugin twice with shortcode
- How to Create custom block for displaying information in content section which act like shortcode
- WPGut – Updating failed and shortcode?
- How to write a custom shortcode name book?
- Limit get_next_post to posts from the same author
- How can we stop showing short code in create or edit post section
- Any way, hook to add content right before the “read more” link?
- Redirect theme directory to plugin theme directory
- Pass javascript result to shortcode executer function
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- Shortcode from a plugin not working
- Modify search form with plugin
- Single_template for a custom post type created from a plugin is returning an empty page
- Confusing $tag specification for apply_filters call, in core options.php code
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- WordPress permalink setting
- How to add conent (text) to Add New pages form of admin in WordPress
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- Apply Filters Causing a 500 Internal Server Error
- add_filter adds output in the head
- How to Pass ID through Short Code
- Apply function on all action hooks?
- WordPress simple ‘Hello World’ plugin – problems
- Shortcode rendered in preview, but empty in post
- How to display .ptm file in my WP site without JAVA
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- Developing an IP lookup function using an API