Articles of comments

Simple spam check for valid domain in commenter's email address

Many times commenters leave fabricated email addresses. As a really basic step, is there a plugin that checks to make sure that the domain actually exists?

WordPress comment_form() does not display actual comments

Maybe I did not understand the role of comment_form(). After pasting this in my wordpress single.php I get just the form for submitting comments but NOT THE ACTUAL COMMENTS. Is this a bug, or the comment_form() does not handle listing the comments? Ty!

Show image next to the comment author if have certain role

I want to create a badge image for comment author of a certain role, say, Editor. I want to style comments of users with the Editor role differently than comments of non-registered or lower-level users. For instance, I’d like to have an image appear next to his/her name. I can do the whole thing in […]

It doesn't matter if I have more than one comment. get_comments_number still equal to one?

It doesn’t matter if I have more than one comment. get_comments_number still equal to one. single.php: <?php get_header(); ?> <div id=”content”> <div class=”container”> <div id=”mainbar”> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <div class=”post” id=”post-<?php the_ID(); ?>”> <h2 class=”permalink”><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2> <div class=”entry-meta”> <?php twentyten_posted_on(); ?> </div><!– […]

Comments and pingbacks issues

I’ve been trying to figure this out for many, many days now. I tried to modifiy the code various times, always with the same result. I just don’t get it. I want to properly separate pingbacks and comments which I did with the following code: <?php if ( have_comments() ) : ?> <h2 class=”h2comments”><img src=”http://img.mywordpresstips.com/comments/comments_big.png” […]

How to fix the amount of comments displayed for each post?

I’ve received an old wordpress 2.8 and successfully upgraded to WP3.2.1. I’ve just discovered that the amount of comments displayed in the WP Admin ‘s list of posts is wrong. Would you know how i could fix that by, perhaps, running a clever SQL update query in the database, that would fetch the real number […]

Avoiding calls to theme-compat

I have developed my own theme as a variant of Twenty Eleven. I am trying to avoid having aria-required being printed by the comments template. For ease of maintenance I’d rather override the comment template in my own theme than change the one that is currently being called. How do I go about overriding the […]

Custom comment types. Are they a possibility?

I see everywhere this has been discussed, there still isn’t a good answer out there. I don’t want to create a custom post type and associate it that way. I want a custom comment type so editors in the backend can add comments on posts while they’re in the editorial phase before it goes out […]

How to Trigger comment_form_after action if comment_form() not used

A plugin I want to use has a filter like so: add_action(‘comment_form_after’,’yoast_track_comment_form’); The theme I’m using doesn’t use the comment_form() call and I believe that this means the filter isn’t being called. The yoast_track_comment_form just adds some jquery tracking, so what is the best way to trigger it. Should I just call it directly from […]

WordPress comments on users profile

I have a profile page and I need to make a comment system on it. The comments system should work exactly the same way as standard WordPress comment system, but instead of posts it should work with users. For better understanding, I have 1 page which acts as a profile for every user (user_login is […]