W3 Total Cache's FAQ on fragment caching gives these examples:
* Example 1:
<!-- mfunc any PHP code --><!-- /mfunc -->
* Example 2:
<!-- mfunc -->any PHP code<!-- /mfunc -->
* Example 3:
<!--MFUNC -->
echo rand();
<!--/mfunc -->
* Example 4:
<!-- mclude path/to/file.php --><!-- /mclude -->
* Example 5:
<!-- mclude -->path/to/file.php<!-- /mclude -->
However when I use one of the above examples with my php code from AdRotate it won't work.
This is how I put my php code into the examples above:
Example 1:
<!-- mfunc <?php echo adrotate_banner('2'); ?> --><!-- /mfunc -->
Example 2:
<!-- mfunc --><?php echo adrotate_banner('2'); ?><!-- /mfunc -->
What am I doing wrong?