• Resolved agentkiller007

    (@agentkiller007)


    I have pasted [site_reviews_summary assigned_to=”<?php the_ID()?>”] shortcode in category.php file inside the while loop
    <?php while(have_posts()) { the_post(); }?>
    it is giving me the following output-
    [site_reviews_summary assigned_to=”320″]

    I want to display the summary in form of stars assigned to each post in a category…..
    Pls Help!….

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    If using the shortcode in a PHP template, you will need to use the do_shortcode function. Also, you don’t need <?php the_ID()?>, you can simply do this:

    if (shortcode_exists('site_reviews_summary')) {
        echo do_shortcode('[site_reviews_summary assigned_to=post_id hide=bars,summary]');
    }
    • This reply was modified 4 years, 8 months ago by Gemini Labs.
    Thread Starter agentkiller007

    (@agentkiller007)

    It worked, thank u very much for your great plugin and support.Admire your kindness,thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode not working’ is closed to new replies.