Hi,
2 days i'm trying to use mfunc without success.
I'm using it inside my plugin developpement.
I'm using shortcode to make it appear in user-view.
Here is my code:
<?php
function XXX_get($atts, $content = null) {
?>
<!--MFUNC return rand() -->
<?php return rand(); ?>
<!--/mfunc -->
<?php
}
add_shortcode('XXX', 'XXX_get');
?>
My problem is, it returns always the same number.
Never different.
Where is my problem ?
Thanks