restricted shortcode get_template
-
Thanks for the this amazing plug in.
I’m new to php and was wondering if it was possible to hide pieces of my template from non logged-in users?I used the code below, but it didn’t work as expected.
<?php echo do_shortcode(‘[restricted]’ . get_template_part(‘project-section-1’) . ‘[/restricted]’); ?>
Could anyone point me in the right direction. Any help would be greatly appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘restricted shortcode get_template’ is closed to new replies.