How to prevent admin's own comment from showing in "recent comment" section?

Discussion in 'WordPress' started by satrap, Jul 1, 2010.

  1. #1
    Anyone knows how to disable admin's own comment on wp's "recent comment" widget?
    When I as admin reply to comments on my blog, it also shows on the "recent comment" section, which is not a problem, but since I work 14 hrs a day offline, I reply to all my comments in one sitting, which means, for a while when you visit my blog, the recent comment section shows all comments made by me. Is there any way to somehow teak the code, so it wouldn't show my own comments?
    Thank you guys.
     
    satrap, Jul 1, 2010 IP
  2. bhuthecoder

    bhuthecoder Member

    Messages:
    245
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    43
    #2
    use this plugin
    http://wordpress.org/extend/plugins/get-recent-comments/
    Code (markup):
    this plugin has the option to "Exclude comments by blog authors" in recent comments
     
    bhuthecoder, Jul 1, 2010 IP
  3. satrap

    satrap Well-Known Member

    Messages:
    156
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    123
    #3
    Thank you very much for your reply. What I failed to mention was, that I don't really want to use a plug-in. I dont want to have too many plug-ins on the blog, which may slow down the loading speed. And also I would rather learn to do these tasks instead of simply suing a plug-in and not knowing what actually happens.
    Do you by any chance know how to modify the code to do this or do you know of any resources that I could use as a guide. Thank you very much again for taking the time to help me out. I really appreciate it.
     
    satrap, Jul 2, 2010 IP