Support » Plugin: TPG Get Posts » Pass variable into a filter criteria

  • Resolved epyscs


    I have a site using a Woocommerce shop page, and I want to pass these variables into the TPG_GET_POSTS code…

    So far I have this in my code and it works well:
    echo do_shortcode('[tpg_get_posts tag="XYZ" category_name="news" show_meta="false" show_entire="true" show_byline="false" ]');

    but I want to pass in a variable into the tag field… any thoughts how i would do this?


Viewing 1 replies (of 1 total)
  • Plugin Author cswaim


    something like this:

    echo do_shortcode(‘[tpg_get_posts tag=”‘.$myvariable.'” category_name=”news” show_meta=”false” show_entire=”true” show_byline=”false” ]’);

Viewing 1 replies (of 1 total)
  • The topic ‘Pass variable into a filter criteria’ is closed to new replies.