Executive Summary:
A method is outlined that allows a Wordpress blog owner easy access to per post comments. These few simple lines of php can be used in any Wordpress theme when used within the loop.
Full Text:

Like delicious bacon, this piece of Wordpress hackery is tasty! Mmmm....
Some of my posts have a lot of comments. I wanted to be able to browse my site and, should I stumble upon a suspect spam comment, be able to easily exorcise it. The method I used to use entailed trying to search for the specific comment in the Wordpress back end. This proved tiresome if there were a lot of spamy comments, especially if there were a lot on one post.
With a little research, some basic PHP I picked up, and a beer I coded up this little ditty which saves me a lot of trouble. Essentially, it provides me with a quick link to the comments of the current post I’m reading. There I can easily check off one or more comments as spam / edit them / do whatever. Simple and easy.
< ?php if (current_user_can('level_10')){ /*if user is an admin, then make the correct link*/ ?> <a href="<?php bloginfo('wpurl');?>/wp-admin/edit.php?p=< ?php the_ID(); ?>">Edit Comments</a> < ?php } /* end of if statement */ ?>
I marked the code up a bit so that hopefully someone starting out with php can use and understand it. Also make sure that if you are trying to cut and paste this into your Wordpress theme you arrange it so the question marks are beside the angle brackets without a space separating them.
Nota bene: the edit comment link only appears up when the admin is logged in.
You can choose where you would like to place this chunk of code, for myself, I added it to the sidebar of the single.php file.
08 Nov 08
5:23 pm
[...] These few simple lines of php can be used in any Wordpress theme when used within the loop. via Views: 0 Comments: 1 Posted on : elbandito on 22 August, 2008 10:38:22 Daca ai [...]
08 Nov 08
11:12 pm
Hello, I don’t understand where the_ID(); is coming from. Can you elaborate please?
Thanks
24 Nov 08
8:24 am
Hi. I’m trying to add a ’subscribe to feed’ button like yours to my wordpress blog at simplyyurts.co.uk/blog
but I can’t work out how to do it.
Any clues?
30 Dec 08
8:26 am
Projekt. Transpiduum.
Das Projekt „Transpiduum“ ist die Präsentation aller Projekte der gleichnamigen Künstlergruppe im Internet. Anders als üblich, gibt es keine bestimmte Website als wichtiger Knotenpunkt der Selbstdarstellung, sondern alle Informationen werden auf öffentliche Blogs sowie Forenbeiträge ausgelagert und mit Stichworten (Tags) versehen. Durch die einzigartige Referenzierung des Namens „Transpiduum“ in den Suchmaschinen, kann der Leser alle relevanten Informationen im Internet finden. Es wird bewusst von einer direkten Anlaufstelle in Form einer Homepage oder eines eigens für die Künstlergruppe erstellten Blog Abstand genommen. Allein das Wissen der Leser über die Existenz der Gruppe ist Refernzierung genug.
Suchmaschine: Transpiduum
12 Jan 09
10:55 pm
what is the difference on going to the admin panel of your wordpress blog?
23 Sep 09
8:39 am
That bacon looks really disgusting to a sizable number of people in the world.
28 Sep 09
1:41 am
google
18 Nov 09
4:32 am
If you like delicious and good food you need to check the label and product. check one and find one of our delicious food.
Best Deal
02 Dec 09
12:21 am
eee
30 Dec 09
9:45 am
[...] How do I download books onto my Amazon Kindle? The importance of the wp_footer(); plugin API hook Wordpress Hack: quick per post comment edit Resources Share this on BlinklistShare this on del.icio.usDigg this!Share this on RedditBuzz [...]
12 Feb 10
4:54 pm
That is not Canadian Bacon …