Support » Fixing WordPress » tube press short code in page template

  • wp_west


    <?php echo do_shortcode(‘[tubepress]’); ?>

    trying to put this in my page template

    all it does is print out the word tubepress

    it works when i post in a page or a post

    help 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator

    Shortcodes are normally parsed as part of the_content() functions/filters. So they won’t work in a template. You may need to dig further into that plugin’s files to see what (if any) functions you can call in place of the shortcode.

    This article will show you how. I just tried it an it worked great.



    @vernal –> that’s the same thing kataklyzmcom tried….
    does anybody know the solution to this?

    Try this:

    <?php echo apply_filters('the_content', '[tubepress]'); ?>

    It treats the shortcode (or whatever you put in that second argument) the same as the_content, so then it’ll get parsed.

    Worked for me, anyway.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘tube press short code in page template’ is closed to new replies.