Last (n) comments, for WP 1.2+
Here is the updated hack that lists the last (n) number of comments to your front page, version .03:
$data[1] ::
\n");
} ?>
Insert that in your my-hacks.php file and place the function call last_comments() ?> in the page where you would like this to show up.
Changes since version .02 of the hack:
- Cleaned up the syntax
- Added the Comment ID to the URL string so you actually go to the comment that you were clicking on, and not just the top of the comment list.
If you would like to download this as a text file you can find it here (if you are using Safari, you won't see the code, just save the file). And remember this code is realeased under the same license that is in use on this site, so use it accordingly.
Enjoyed this article? Follow me on Twitter.