WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] calling from template outputs "[tpg_shortcode]" (2 posts)

  1. wulongti
    Member
    Posted 1 year ago #

    I have WP v3.5 and plugin v2.02.01

    In my theme I'm using the following in my template:

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

    But what's showing up on the site is "[tpg_shortcode]" instead of the plugin actually working.

    Assuming this works though, I'm guessing I can use all the other options that I normally would when using the shortcode? This isn't documented anywhere, so I ask.
    Like this(?):
    <?php echo do_shortcode('[tpg_shortcode tag="myTag" fields="content"]'); ?>

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

  2. wulongti
    Member
    Posted 1 year ago #

    disregard, I'm an idiot.

    should have been using:
    [tpg_get_posts fields="content" tag="myTag"]

    not:
    [tpg_shortcode fields="content" tag="myTag"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic