WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] how to invoke from a template file? (3 posts)

  1. dreeds
    Member
    Posted 2 years ago #

    Hi, great plugin. The shortcode works great via the Visual Editor but how would I call this via php from within a template file?

    Thanks for your work on this useful plugin,
    Dean

    http://wordpress.org/extend/plugins/tpg-get-posts/

  2. jfitzsimmons2
    Member
    Posted 2 years ago #

    Hey Dean,

    I came across this page while looking for the answer to your problem. I found the answer so I came back to share.

    To incorporate TPG Get Posts into a template try using

    <?php echo do_shortcode('[tpg_shortcode]'); ?>

    in your template file.

    Good luck!
    -Joe

  3. dreeds
    Member
    Posted 2 years ago #

    Sweet, thanks Joe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic