Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Unfortunately that’s a paid theme and I can not download it and look into the code, but from what I can see from the preview, they use an ordered list element with class commentlist. So searching in your themes files for:

    <ol class=”commentlist”>

    Should point you in the right direction.

    Moderating multi ratings doesn’t work for me either. Hopefully that will be fixed in gd star rating v2.0 if that ever sees daylight.

    I don’t know if all theme’s do it like this, but in WordPress’s twentyeleven and twentytwelve this is done by a function in functions.php.

    You can find back which function that is in comments.php . In comments.php look for something like this (example from twentytwelve theme):

    <?php if ( have_comments() ) : ?>

    <ol class=”commentlist”>
    <?php wp_list_comments( array( ‘callback’ => ‘twentytwelve_comment’, ‘style’ => ‘ol’ ) ); ?>
    <!– .commentlist –>

    The callback variable in wp_list_comments points to the function displaying each comment. So in this case you would see ‘twentytwelve_comment’ is the callback function and you search for that function in functions.php.

    If you can’t figure it out just post the theme you’re using here and I’ll take a look for u.

    So you’re trying to show the multi rating that a certain user has given together with his comment?

    In that case you can use this in your comment callback function:

    wp_gdsr_comment_integrate_multi_result($comment_id = get_comment_ID()); ?>

    I might be able to help if you guys tell me what you’re using, with that I mean which shortcode/widget?

    Thread Starter vvw_soko

    (@vvw_soko)

    Marked as resolved.

    Thread Starter vvw_soko

    (@vvw_soko)

    For those interested, having seen the code I’m quite sure there’s no option for it. However if you really need it, you can manually change the code:

    file gd-star-rating/code/blg/query.php

    If you have a single rating (standard rating, no multi rating) change line 114, if you have a multi rating change line 174, replace:

    if ($c != “”) {
    $c.= sprintf(“, %sposts.post_date desc”, $table_prefix);
    }

    with:

    if ($c != “”) {
    $c.= sprintf(“, %sposts.post_title asc”, $table_prefix);
    }

    Thread Starter vvw_soko

    (@vvw_soko)

    Thanks for trying to help, but that is not what I want to do. I want to alter the loop query to show results ordered by rating -> title.

    Like Milan does in this article:
    https://v1.gdstarrating.com/2009/07/03/how-to-reorder-posts/

    But then more advanced.

    Since I need it quick I’ll try to fix it in the plug-in myself.

Viewing 7 replies - 1 through 7 (of 7 total)