[Plugin: GD Star Rating] GD Star in Comments – Use outside loop
-
Hi there,
I have worked with gd star on other sites and templates with no issues …. but I have recently tried to integrate gd star multi-ratings in COMMENTS with no luck using the following type of template:
– Twenty Eleven Responsive (child theme)
All you need to do is to add call to a PHP function somewhere in this loop that will render saved rating. Line 39 in this file: 1 <?php comment_text() ?>
The issue is that this template processes comment_text function through functions.php NOT comments.php.
So the following calls don’t work when added in functions.php since they need to be in the loop which is in comments.php:
[90 lines of code moderated as per the Forum Rules. Please use the pastebin]
- The topic ‘[Plugin: GD Star Rating] GD Star in Comments – Use outside loop’ is closed to new replies.