Articles of comments

counting trackbacks, pingbacks and comments of a post

I wish to display the number of trackbacks, pingbacks and comments a post has. I’ve read all about them and I am wondering if there is a simple solution, that I am not seeing, available. I know that wp_count_comments (trac line 1188) searches in WPs cache before making a database query and I want to […]

Two textareas showing up in comments.php

I have the following code to display comments, but there are two text areas showing up, not just one. Here is my code <?php $comment_args = array( ‘title_reply’=>’Got Something To Say:’, $aria_req = ( $req ? ” aria-required=’true'” : ” ), ‘fields’ => apply_filters( ‘comment_form_default_fields’, array( ‘author’ => ‘<div class=”grid-1-3″>’ . ‘<input id=”author” placeholder=”Name (required)” […]

How to Define Custom Number of Items in Comment Feed

Seeking a hook or code to override the Reading-Settings value for Syndication feeds show XXX items specifically for the comment feeds. Ideally I’d want to roll into a plugin I can network activate on a multiuser site. I am using Feed WordPress to syndicate in comment feeds from about 100 student blogs on a multi-user […]

Conditionally load class in the comment section of the post page

I want to be able to conditionally load a class containing the word ‘AUTHOR’ in the comments section, next to the name of the person who was the author of the post. I know it has something to do with class bypostauthor, what I’ve got so far is: <?php if $class == ‘bypostauthor’ ?> <div […]

Display on page every post in blog WITH comments

I am trying to create a page which displays all the posts in the blog, with the comments to each post listed below the respective post. By looking around the internet I figured out how to create a page template with the following code: <?php $args = array( ‘numberposts’ => -1); $posts= get_posts( $args ); […]

Customize reply form different to comment form

I have a problem with the comment form, as i’d like to change the style of the reply comment form (the one which opens after the clicking on Reply link of a comment). But I can’t find a way to do it properly, and I don’t want to modify native files from WordPress, such as […]

How does WordPress generate a comment website preview?

In the WordPress comment que, hovering over the URL of a comment generates a preview of the website. How does WordPress handle this and does this generate a hit, or ‘visit’ to that website?

How do comments work?

I click the comments button in my admin dashboard and I only see 1 comment. I disabled comments on my website and it’s not even from my website, it’s from another website, looks like they linked to a post of mine. I don’t understand why I see that in the comments section… but then I […]

Trying to post a wordpress comment on my site redirects to

My commenting system used to work fine, but now it redirects to whenever I try to post one. Any ideas on how to fix this?

get_comment_meta not behaving as expected

I’m sure this must be a silly error by me but I haven’t been able to solve it… I added an extra ‘rating’ field to my comments form so that users can rate posts. Everything works fine and by using add_comment_meta( $comment_id, ‘rating’, $rating ) it gets inserted fine in the wp_commentmeta table. However, when […]