Thread Starter
bbothe
(@bbothe)
Thanks a million for the hint with the the_seo_framework_generated_description! That was the solution, it is indeed used in another plugin.
(Of course, in the real code I do not print, but return the output. This code was only for testing.)
Thank you for your help!
Thread Starter
bbothe
(@bbothe)
Hi,
thank you for the explanation. The counter is part of a shortcode. You can test it with this snippet:
$GLOBALS['my_counter'] = 1;
add_shortcode('test_counter', 'my_test_counter');
function my_test_counter() {
print $GLOBALS['my_counter'];
$GLOBALS['my_counter']++;
}
Without TSF, the shortcode will print “1”.
With TSF activated, it will print “2” as the counter was already incremented when TSF pre-grabbed the content.
Consequently, when using the shortcode twice in the content, it will print “3” and “4”…