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

  1. wulongti
    Posted 3 years 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"]'); ?>


  2. wulongti
    Posted 3 years ago #

    disregard, I'm an idiot.

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TPG Get Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic