WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings, how do I display top posts on a page? (16 posts)

  1. thatdaveguy
    Member
    Posted 7 years ago #

    I see the code in the help file:

    http://www.lesterchan.net/wordpress/readme/wp-postratings.html

    However, I have no idea how to insert this into a page.

    I'd like to have a Top 10 top rated post page.

    Thanks.

  2. thatdaveguy
    Member
    Posted 7 years ago #

    My site is

    http://www.thedailycute.com

    If it matters

  3. whooami
    Member
    Posted 7 years ago #

    did you read the Usage Instructions?

    Its right there on the tab.

  4. thatdaveguy
    Member
    Posted 7 years ago #

    Yeah, I don't know how to use it.

    I don't know where to post this:

    <?php if (function_exists('get_highest_rated')): ?>

      <?php get_highest_rated(); ?>

    <?php endif; ?>

  5. Lester Chan
    Member
    Posted 7 years ago #

    you need a plugin that can parse php code like ExecPhp or something then paste the code in the post content area when you create the page

  6. thatdaveguy
    Member
    Posted 7 years ago #

    thank you. that's what i needed to know. i will try it right now.

  7. thatdaveguy
    Member
    Posted 7 years ago #

    anyone know a safer plugin? the warning about the lack of security for execphp is unsettling at best...

  8. thatdaveguy
    Member
    Posted 7 years ago #

    that plugin did not work for me. my theme does not have widgets.

  9. Marcomail
    Member
    Posted 7 years ago #

    You could create a new page with the postrating code in it

  10. thatdaveguy
    Member
    Posted 7 years ago #

    that's what i'm trying to do

    i insert the code with the 'code' tab, and publish it, and its a blank page.

  11. Lester Chan
    Member
    Posted 7 years ago #

    Marcomail: you can only do it if you got a plugin that can exec php code.

    thatdaveguy: What about

    http://wordpress.org/extend/plugins/inline-php/

  12. thatdaveguy
    Member
    Posted 7 years ago #

    Parse error: syntax error, unexpected '{' in /home/thedaily/public_html/dailycute/wp-content/plugins/inline-php/inline-php.php on line 15

    no go...

  13. Lester Chan
    Member
    Posted 7 years ago #

    informa that plugin author

  14. Marcomail
    Member
    Posted 7 years ago #

    Gamerz i usually create a new page template and add the php code in it...i don't insert the code directly during the creation of the page

  15. Lester Chan
    Member
    Posted 7 years ago #

    i see, for me if given a choice, I would insert the php code into the post instead =D

  16. Marcomail
    Member
    Posted 7 years ago #

    Gamerz i sent you a PM on your board :)

Topic Closed

This topic has been closed to new replies.

About this Topic