Tag Info

New answers tagged


get_comments do not get a post ID as parameter but rather an array in which you can set all kinds of query criteira including post ID. See the codex http://codex.wordpress.org/Function_Reference/get_comments. You can even use the author_email parameter to make get_comments do most of the work for you.


You should probably use this: get_comment_link()... and do something like this in your href value: <?php echo get_comment_link($comment->comment_ID); ?> Because if you use pagination for your comments, this can automatically determine the page the comment is in as well.

Top 50 recent answers are included