• Resolved PinkishHue

    (@pinkishhue)


    Hi,

    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!

    Jo

    http://wordpress.org/extend/plugins/hide-this-part/

Viewing 1 replies (of 1 total)
  • Thread Starter PinkishHue

    (@pinkishhue)

    Sorry, I’m silly! Figured it out in case anyone else is interested:

    <?php echo do_shortcode('[hide-this-part]my text here[/hide-this-part]'); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Hide This Part] How to use this shortcode in theme?’ is closed to new replies.