Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bhbilbao

    (@bhbilbao)

    Post Image
    New tag %IMAGE% is added, and this tag will be replaced by the URL to the image from the post. There are 2 methods of getting this image. One is from the custom field and the other from the post content.
    https://v1.gdstarrating.com/2009/04/21/widget-gd-star-rating-2/
    https://www.ads-software.com/support/topic/plugin-gd-star-rating-post-thumbnails-in-widget?replies=4

    t2:
    <img src="%IMAGE%" alt="%IMAGE%" width="38" height="38">

    single.php:
    <?php wp_gdsr_render_rating_results(array('template_id' => 90, 'rows' => 5, 'min_votes' => 2, 'image_from' => 'content')); ?>

    Puting “content” it works, but it takes the first image of the post , not the post-thumbnail.

    What the code to print the post thumb image?
    post-thumbnails? thumbnail? spost-image? custom?

    nobody?

    Thread Starter bhbilbao

    (@bhbilbao)

    There is a problem, plugin only takes the first content image.

    To fix, I added the image to content and hidden it with this(more work but works):
    <img class="size-medium wp-image-12880" alt="" src="../wp-content/uploads/2013/12/ps4box-300x168.jpg" width="0" height="0" />

    Also the image needs widht and height in the T2 TEMPLATES:
    <img class="thumbnail" src="%IMAGE%" alt="%IMAGE%" width="500" height="500" />

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘%IMAGE% in Default Standard Rating Results [SRR]’ is closed to new replies.