You need to use fragment caching so enable PHP in the widget and then use the following tags:
<!-- mfunc -->
The following links should help:
https://wordpress.org/support/topic/using-shortcodes-with-fragment-caching/
https://www.justinsilver.com/technology/wordpress/w3-total-cache-fragment-caching-wordpress/
Related Posts:
- Run W3 Total Cache Flush Function with Crontab [closed]
- PHP Code stuck in Cache [Memcached] [closed]
- PHP 5.5, w3 Total Cache, and opcache [closed]
- How to prevent those PHP variables from being cached on WordPress?
- WordPress with php 5.5 and zend opcache
- Running code before object-cache.php runs
- customize wordpress database error page
- WordPress And High disk i/o
- WordPress 4.2.3 on Windows Server 2008 R2 Creating Files as read only
- Language does not switch while cache is enabled
- RegExp to EXCLUDE strip HTML (FOR SOMME) comments
- Splash pages on a high traffic site
- How to add product in woocommerce with php code [closed]
- What’s the best way to use the Featured Image for responsive web design?
- Hide php Notices in Dashboard
- How to correctly submit a search form and display the result in an independent page
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Creating custom Woocommerce attribute taxonomies from a plugin
- What is the most efficient way to search users by their display name?
- Passing JSON data from WP Query into AJAX causing NULL errors
- Using Echo in ShortCode – Stuck
- Get used terms by an author as array of strings
- Compare two meta key values against each other inside the get_posts array?
- Multiple do_shortcode($content) within one shortcode
- Index showing source code
- WordPress menu deletes when trying to add a hook
- Overriding a theme redux file in child theme
- Validate a users email address when using gmail to register
- How to show only a certain part of the entry title?
- Programmatically add and remove woocommerce product category
- allow subscribers to see private posts without plug in
- Get image’s size name from it’s dimension
- How to securely provide a $_POST var in WP_Query with PHP 7?
- If Query In Sidebar
- Unreadable pagination
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- wp_enqueue_scripts leads to error
- My page.php shows the index.php
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- How create a Shortcode with hover and complex options
- Remove from shortcode
- WordPress SQL injection
- Function returns text instead of html [closed]
- How can I display a div ONLY if it is not a certain term page
- Next post link on a bootstrap button
- Echo title attribute php
- how to serialize() mysql update data
- Output: “Array”
- Get a value inside a get_post_meta Array
- Calculate days between two custom field value dates
- Using rules in Posts
- WordPress cron is running with previously set time intervals and not the updated one
- Accessing an API with jQuery and AJAX
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Good RSS Feed Parser to use on php file?
- Client cant see the Updated dynamic content
- Post ID wrong in Functions.php
- Obfuscate links (for SEO purpose) [closed]
- Sortable custom product taxonomy terms via drag and drop
- get value from get_post_meta then reuse it in another get_post_meta
- How to remove Login from in my account page
- Header is not displaying on certain pages of wordpress theme [closed]
- Retrieve the whole widget sidebar and pass it inside an html
- Include custom fields in search
- Creating multiple tables with Plugin
- How to access specific product id on other pages/posts?
- Intermittent 503 Service Unavailable Error
- Adding Custom css file in the wp-uploads directory with custom php functions
- ACF – Get ID of relationship field in flexible content
- Return newly created category by code
- Pulling Products from an API
- Automatically delete posts one by one depending on published time
- Woocommerce remove menu item on myaccount dashboard
- Hook into all password resets in WordPress and get password before hashing?
- WordPress select query issue
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- Dropdown menu on custom menu
- Pagination in WP Queries
- woocommerce plugin bugs
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Display product_brand with get_the_terms function
- WordPress get_post_meta issue
- Woocommerce Price Text
- If Elseif Query
- Querying multiple meta_keys in WordPress SQL query
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- Cannot Upload Custom Header Image into WordPress Dashboard
- Generating a number based on post ID
- Add comma between variables [closed]
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- echo vs output variable [closed]
- Display Post Titles on top of the_post_thumbnail()
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Contact form with dynamic dropdown and filter
- Critical Error customiser
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?
- WordPress Query – Blog Cards Duplicate issue