Support » Plugin: GD Star Rating » calling wp_gdsr_rating_article() from loop.php (template)
4 years, 4 months 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…
hmmm also I noticed in get_defined_functions() that it is defined, so why does it return NULL? 🙁
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 😉
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(); ?>!