Using shortcodes with fragment caching
-
I use a geolocate shotcode and comment it out this way:
<?php if (!defined('W3TC_DYNAMIC_SECURITY')) { define('W3TC_DYNAMIC_SECURITY', md5(rand(0,999))); } ?> <!--mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> --> echo do_shortcode('[wt_geotargeting get="city"]'); <!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY; ?> -->
Weirdly it doesn’t work on 10% of the pages on my site, it displays “
echo do_shortcode('[wt_geotargeting get="city"]');
” instead of the city nameDo you have any idea?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using shortcodes with fragment caching’ is closed to new replies.