• i’m looking to get a really simple recent comment section in my sidebar.

    however i don’t want to use a plugin/widget.

    i figured instead of using recent posts i could somehow change this code to give me recent comments so that it shows post name and the author of the comment.

    <li id="Recent">
    <h2>Recently Written</h2>
    	<ul>
    		<?php get_archives('postbypost', 10); ?>
    	</ul>
    </li>

    thanks…

Viewing 1 replies (of 1 total)
  • listen, I dont know why you dont want to use a plugin… but if you really don’t then you can just open the plugin code and insert it in your sidebar (give or take).

    plugins aren’t evil – but if for some reason you feel like coding it yourself, don’t make that everyone else’s problem, and just go ahead and code it *yourself*.

    In the mean time, here’s a really small, really simple plugin which I’ve used for years:

    http://ronrothman.com/public/leftbraned/wordpress-plugin-recent-love-a-list-of-recent-comments

    Once you open it up, you’ll see that you can’t really just use a wordpress template tag to do that. If you could, they wouldn’t make plugins or widgets for it.

Viewing 1 replies (of 1 total)
  • The topic ‘simple recent comment’ is closed to new replies.