Adding shortcode [toc] by code is not running
-
Hello, I can’t show you a post because I’m still on local development. The issue is that if I put this piece of code in my single template (single.php), the shortcode is not executed. If I put the shortcode inside the content it runs correctly.
<?php echo do_shortcode( ‘[toc heading_levels=”2″ start=”3″]’ ); ?>
But I want to put it in a differennt position that those the plugin offers. Isn’t it possible?
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Adding shortcode [toc] by code is not running’ is closed to new replies.