I would like to use this in my theme rather than in a post. I understand how to do this with some shortcodes, but with a shortcode such as this with a beginning and end – where do I add the content that should be displayed within the shortcode?
Here is what I have:
<?php echo do_shortcode(‘[hide-this-part]’); ?>
I have been hunting for the answer for an hour but it appears this is not something widely discussed.
Many thanks for any help anyone can give me!
- The topic ‘[Plugin: Hide This Part] How to use this shortcode in theme?’ is closed to new replies.