WordPress.org

Forums

GD Star Rating
[resolved] What triggers the ratings block? (4 posts)

  1. _wpuser_
    Member
    Posted 2 years ago #

    I'd like the ratings block to appear on secondary custom pages. What PHP triggers GD Star Rating to recognize the post and display the cooresponding data for the post (e.g. stars & average rating)?

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

  2. _wpuser_
    Member
    Posted 2 years ago #

    For instance, I'd like the ratings block to appear for post with $post_id = 5; just after I post the content of the post in this manner:

    <?php
    $post_id = 5;
    $queried_post = get_post($post_id);
    $title = $queried_post->post_title;
    echo $title;
    echo $queried_post->post_content;
    ?>
  3. _wpuser_
    Member
    Posted 2 years ago #

    ^^ It might be implicit, but please notice that I do not want to use the 'posts Loop' in this scenario

  4. _wpuser_
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic