WordPress.org

Forums

GD Star Rating
calling wp_gdsr_rating_article() from loop.php (template) (4 posts)

  1. cusco
    Member
    Posted 2 years ago #

    in loop.php I don't seem to have gdsr stuff, as var_dump(wp_gdsr_rating_article($post->ID)); returns NULL
    and I checked that $post->ID returns the post ID ...

    do I need to include something? how to have gdsr from loop.php ? in single post page, the stars are there...

    http://wordpress.org/extend/plugins/gd-star-rating/

  2. cusco
    Member
    Posted 2 years ago #

    hmmm also I noticed in get_defined_functions() that it is defined, so why does it return NULL? :(

  3. Tsybin
    Member
    Posted 2 years ago #

    same problem! But i have multi-set rating! Correct display on the post/page, but in loop.php (front-page) not want! Support here answer long time, so, can go sleep ;)

  4. Tsybin
    Member
    Posted 2 years ago #

    i just set in options "add rating for all posts/archive/homepage" and add in loop.php in the excrept function: <?php wp_gdsr_render_article(); ?>!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic