• I want to create a “Top Content” page that has most e-mailed posts, most viewed posts, most commented posts and most recent comments. I want to use the “Get-Recent-Comments” plugin to provide the most recent comments component. However, it doesn’t seem to work when I place it outside of the Sidebar. Any idea why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter thunksalot

    (@thunksalot)

    I figured it out. I needed to install and turn-on runPHP to execute the PHP script within a Page. But, that also necessitated re-writing the installation script so that all the PHP logic happened within one PHP instance:

    <?php
    if (function_exists(‘get_recent_comments’)) {
    print “<h2>”;
    _e(‘Recent Comments:’);
    print “</h2>

      “;
      get_recent_comments();
      print “

    “;
    }

    if (function_exists(‘get_recent_trackbacks’)) {
    print “<h2>”;
    _e(‘Recent Trackbacks:’);
    print “</h2>

      “;
      get_recent_trackbacks();
      print “

    “;
    }
    ?>

    Works great. Exactly like I wanted.

    This is really neat. Thanks.

    Great idea, but I don’t know to put install this code. Let’s say I am using non-widget theme, so where do I have to install this?

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What about putting it in a place other than the Sidebar?’ is closed to new replies.