WordPress.org

Ready to get started?Download WordPress

Forums

P2 - Top posts by comment count in sidebar (4 posts)

  1. batkinson
    Member
    Posted 3 years ago #

    I'm using the latest P2 theme on WP 3.0.4.

    I'm using P2 for an internal innovation platform and comment count is our proxy for the merit of an idea.

    Is there a way to list the top posts by comment count in the sidebar?

    I tried a PHP widget with the following code and it crashed P2:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thanks, in advance!

    Ben

  2. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    Did you try this in: p2/inc/widgets/recent-comments.php?

  3. batkinson
    Member
    Posted 3 years ago #

    Ah! That's a good idea.

    I'm not sure I can handle the PHP, though. I code like a spastic chimp. I'm more of a 'cut and paste' programmer. ;)

    Are you aware of any plugins?

    Ben

  4. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic