echo do_shortcode?
-
I want to use the role filter like this:
<?php echo do_shortcode( '[members_access role="' . echo $roles; '"]' ); ?>
where $roles come from an Advanced Custom Fields Repeater. Doesn’t seem to work though. Everything else works, but not when I wrap it all up in do_shortcode. Can this shortcode be called like this?
Thank you
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘echo do_shortcode?’ is closed to new replies.