I need to write a dynamic shortcode. The original says: [... width="940" height="200" ...]
I need to have this:
[... width="<php>
" height="<php>
" ...]
How do I get this to happen??
Thanks, Floyd
I need to write a dynamic shortcode. The original says: [... width="940" height="200" ...]
I need to have this:
[... width="<php>
" height="<php>
" ...]
How do I get this to happen??
Thanks, Floyd
Shortcodes are plain text wrapper made exactly for cases when PHP code is not available or should not be used.
do_shortcode()
.add_shortcode()
) and use it in PHP code directly.<?php echo do_shortcode('[... width="940" height="200" ...); ?>
and I want to have this: <?php echo do_shortcode('[... width="<javascript>" height="<javascript>" ...); ?>
I know it is strange, but probably someone will get me...
Commented
Apr 6, 2011 at 10:58