I don’t think that there is a way to do this. All that shortcode does is generating some HTML code and putting it as content.
But… there is a workaround you can use. Your shortcode can generate only a placeholder for its content and then you can use AJAX to populate it with real content. It’s a pretty common practice to deal with cache in WP – for example WooCommerce uses exactly this method for its cart.
PS. If you’re using W3TC you can set a list of pages that shouldn’t be served from cache.
Related Posts:
- Will setcookie work if there is a cache plugin installed?
- Trouble with Transient API when W3TC is activated [closed]
- Will cron job run if page loaded is being served from cache?
- Make WordPress cache permanent for some pages until edited
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- How to add support for caching plugins for my own plugin?
- How to disable cache for the content returned by a shortcode
- Plugin files not updated (cache cleared)
- Is this Solution for Caches vs Cookies Going to Get Me in Trouble?
- PHP error with shortcode handler from a class
- Add self-closing shortcode button to TinyMCE in WP 4.6
- Is get_option() faster than accessing get_transient()?
- Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]
- Best practices for using the transients API
- Optimize shortcode callbacks
- Disable WordPress cache programmatically on a request [closed]
- How would I create a plugin for my shortcodes?
- How to prevent newline from appearing in shortcode?
- Shortcode adding p and br tags
- How to make dynamically-generated content searchable in WordPress?
- Are shortcodes case-sensitive?
- Enqueue script only when shortcode is used, with WP Plugin Boilerplate
- Allowing for multiple template views on the Gallery Settings page when using the Visual Editor
- How to make WordPress use non-greedy shortcode parsing?
- Multiple Parameters for a Shortcode
- How do I make specific plugin functionality apply to different sites in a network?
- Shortcodes, output buffering, and WordPress functions
- Filter on the_content ignores shortcodes
- stray elements
- Pass javascript result to shortcode executer function
- Front-End Form Submission in Shortcode
- How to get shortcode to work inside a foreach loop called within a shortcode?
- Get returned variable from a function to add_shortcode function
- What is rich_editing?
- Why is my shortcode not working
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- How can I free up the memory used by update_post_meta?
- On plugin deactivation hide its shortcode
- What is difference between ‘Page Cache’ and ‘Object Cache’ in WordPress?
- Can’t get JS code to work with shortcode
- add_filter img_caption_shortcode not implemented
- How can I control if post updated
- shortcode tags not working in do_shortcode
- How to insert HTML/CSS/JS into my iframe plugin?
- Including template in shortcodes
- Form submission to another page returning 404 error [duplicate]
- Passing values between enclosing and enclosed shortcodes
- insufficient permissions; coding an action for plugin governed by custom capability
- post content and shortcode content displaying out of order
- Font size of HTML content
- Cannot output plugin twice with shortcode
- Paragraph Tags removed when contents are only a shortcode
- How to call a function from a shortcode function in an oop plugin
- WPGut – Updating failed and shortcode?
- How to cache a custom API call?
- How to write a custom shortcode name book?
- Undefined cache functions in my custom plugin
- By adding “?login – failed” code unable to access my dashboard
- How can I pass WP_Query results to a plugin?
- How can we stop showing short code in create or edit post section
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Including content into an add_shortcode() function
- Pass javascript result to shortcode executer function
- Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- Pre-Caching and Googlebot
- Is it possible to restore an expired transient?
- How do I make two shortcode use the same id and increment it when I use them multiple times?
- Shortcode from a plugin not working
- 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?
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- How to add conent (text) to Add New pages form of admin in WordPress
- Do a summary based on sections in a post
- Children Shortcodes?
- Wrapping shortcodes in another shortcode
- Identifying a Page Containing Shortcode at `init`
- Cannot echo a JS variable to a jQuery plugin coming from wp_localize_script
- How to show custom taxonomy child posts through shortcode in WordPress
- Multi-part form and wp_redirect()
- add short code not working
- Create pages for authors
- Loop output for custom plugin [solution found]
- Correct usage of scripts with shortcodes
- How to Pass ID through Short Code
- WP Super Cache versus W3 Total Cache [closed]
- Shortcode attribute “title” doesn’t appear in $atts array
- Developing a wordpress.com shortcode [closed]
- 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
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Does WP REST API cache internally executed (rest_do_request) requests?
- Developing an IP lookup function using an API
- Shortcode to return data instead of outputting HTML?
- How to make WordPress ignore GET parameters when caching pages?
- Update Cache on Save Instead of Clearing It?
- Cache API Images to Prevent Hot Linking
- Using a shortcode to get User Emails by role as specified in the shortcode, need help to allow for multiple roles
- Resending woo-commerce order emails from frontend