Using groups at theme level
-
Hi,
This is a similar to other questions, but I’m unable to lock down content at theme level.
These examples work if the template files that are called don’t have php in them
<?php $content = '[groups_member group="X"]'; $content .= get_template_part('permitted-content'); $content .= '[/groups_member]'; echo do_shortcode( $content ); ?>
This doesn’t work either
<?php echo do_shortcode( '[groups_member group="X"]' . get_template_part('permitted-content') . '[/groups_member]' ); ?>
I’m getting all content in the files being executed regardless of the groups permissions.
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using groups at theme level’ is closed to new replies.