do_shortcode command and wrapping content
-
Hi! If I try to put your shortcode [passster] in a template file like this:
<?php echo do_shortcode('[passster password="0123456789"]'); ?>
it won’t wrap any of content.My intention is to wrap a content in a template file like this:
<?php echo do_shortcode('[passster password="0123456789"]'); ?> <article>My content ... end of content</article> <?php echo do_shortcode('[/passster]'); ?>
However, [/passster] is not a shortcode for itself, so I would need a different closing shortcode, like [passsterclose] or something similar. Would that be possible anyhow?
The main problem is that I would change passwords in future and I want that every post and page update it’s password when I change it.
The page I need help with: [log in to see the link]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘do_shortcode command and wrapping content’ is closed to new replies.