Shortcode in php in template file
-
Hello!
I’m trying to use the restricted shortcodes to restrict entire parts of page templates as below. I consulted the docs but it’s not working, what am I doing wrong?
<?php echo do_shortcode('[restricted]'); ?> /*code here */ <?php echo do_shortcode('[/restricted]'); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Shortcode in php in template file’ is closed to new replies.