echo do_shortcode – text to be wrapped
-
This is from: http://codex.wordpress.org/Function_Reference/do_shortcode
echo do_shortcode('[iscorrect]'.$text_to_be_wrapped_in_shortcode.'[/iscorrect]');
So, I’m getting that in my template just fine, and it’s causing the shortcode to work, but I have no idea how to format the ‘.$text_to_be_wrapped_in_shortcode.’ to get that middle text to show up – it’s just blank.
Here’s my actual code:
<?php if ( in_category( 'boys' )) { echo do_shortcode('[button color=black]'.$text_to_be_wrapped_in_shortcode.'[/button]'); } ?>
The black button is showing up, but no matter what I put in the middle, it’s just blank.
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘echo do_shortcode – text to be wrapped’ is closed to new replies.