WordPress.org

Forums

WP-PostRatings
[resolved] How to show only stars on frontpage? (5 posts)

  1. osxisl
    Member
    Posted 10 months ago #

    Hello!
    How to show only stars (without ability to vote) on front page grid of posts?
    I need something like that:
    Maybe there is some php code for that, but I didn`t find it.
    Thanks

    https://wordpress.org/plugins/wp-postratings/

  2. Lester Chan
    Member
    Plugin Author

    Posted 10 months ago #

    You can try like:

    <?php
    if(is_front_page() || is_home()):
    echo the_ratings_results(get_the_ID());
    endif;
    ?>
  3. osxisl
    Member
    Posted 10 months ago #

    Thanks a lot! It`s working!

  4. Softfully
    Member
    Posted 9 months ago #

    Plugin is great...

    I have 925 post and 62 pages, so 15 post per page.

    I successfully installed ratings inside post. Click this link to view : http://www.softfully.com/img/001

    Now how to install ratings outside post marked as red arrow place ? Click this link to view more information : http://www.softfully.com/img/002

    Thank you.

  5. Softfully
    Member
    Posted 9 months ago #

    Also tell where to place above code ?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.