20 Important Hacks for WordPress Comment Page

Comments page is one of the most important pages for WordPress. Comments page holds all the management systems for the comments posted by the authors of the article, the webmasters or the readers. The comments so posted need to be monitored and managed so that the comments can be used the way you want them to appear on the website. Hacks can be used to further manipulate the way you use the comments to your website’s advantage. There are many hacks available that will help you to manage the comments that are posted to the articles.

The good thing is that these hacks are easy to use and they just need to be pasted to the CSS coding and your job is done. You will get codes which remove the links pasted in the comments by other website owners who want to promote their own websites or by the people who paste links which are irrelevant. The author’s comments are important because most often he is the person who is given the responsibility to reply to the comments posted by the viewers. You will even get hacks which serve this purpose in this article.

Following are some more related articles that you may like to browse through:

It’s our pleasure that we have a platform to share our collections with you. We promise you that we will try our best to deliver the best possible resources.

Don’t forget to subscribe to our RSS-feed ; follow us on Twitter and Like our Facebook Page — for recent updates.

In this article, you will find many such hacks for WordPress comments page which will be really helpful to manage all the comments. I hope that you will like this article and please do post your comments.

Hack Together a User Contributed Link Feed with WordPress Comments

Although WordPress has a *very* extensive plug-in collection, now and again things come up for which there are no suitable plug-ins available (yet). When I built PSDTUTS I thought it would be cool to have a way for users to submit links and to create a public link feed out of it. Today I’ll show you how I hacked together a method using WordPress’ comments.

Visit Tutorial

Separating Your Author Comments in WordPress

Have you noticed while visiting some of your favorite blogs that many author comments are styled differently to help the authors comments to stand out?   This is something that isn’t overly difficult to implement on your WordPress blog, so I decided to write a quick how-to post explaining how you can easily adjust your WordPress theme to display different styles for each author.

Visit Tutorial

Making you theme’s comments compatible with WordPress 2.7

I’ve been working hard on a new WordPress theme, but I needed the theme to be compatible with both WordPress 2.6 and 2.7. If you’re a theme developer, you already know how hard it’s going to be to make your 2.7 theme backward compatible because of all the new features being added. I won’t go into the details of how to put together a comments.php file here. There are plenty of tutorials and themes to look at for that.

Visit Tutorial

Styling WordPress Comments

A fun part of customizing WordPress themes is designing a comments format which complements the rest of the site. Here are three examples from recent projects, including code samples and downloads to the original .PSDs:

Visit Tutorial

Adding Form Validation to WordPress Comments using jQuery

When it comes to simpler user experience, having your form validation happen instantly on the same page is a lot cleaner than reloading pages and possibly losing some form content. In this tutorial I’ll show you how to use jQuery to do some instant checking on an example comment form.

Visit Tutorial

How to disable HTML in WordPress Comments

By default, WordPress allows certain tags in comments. Therefore commenters can add links, style text in bold and italics, add tables, and more. This can be quite useful. Unfortunately for this site, almost no one has actually needed to use tags in comments, while many people have pasted code samples in comments only to see them disappear or be interpreted as HTML by the browser.

Visit Tutorial

Disable Comments in Old Post via PHP

Just a quick WordPress snippet for future reference. I recently explained how to disable comments, pingbacks, and trackbacks via SQL. Here’s a good way to do it via PHP:

Visit Tutorial

Highlight Author Comments in WordPress

You’ve probably seen this done on blogs, comments by the author have a different background colour to differentiate them – it’s handy when you’re scanning comments to see the authors own response. A lot of people use the ScriptyGoddess solution, it involves hardcoding an email address and then when you comment it checks the email address you used to comment against the hardcoded email address. So it only works for blogs where there is only one author. If you search WordPress support for Author Comment Highlighting you will find another option which checks the email address of the commenter against the email address of the author of the post using WordPress template tags. I used a mix of both codes to do Author Highlighting on BifSniff.com and it seems to work fine. I just changed the scriptyGoddess code to grab the author email using WordPress tags.

Visit Tutorial

Prevent Author Impersonation in WordPress Comments

This modification to WordPress prevents unregistered comment authors from using the names or email addresses of the registered authors on your site. It does this by first checking to see if the comment author is logged in. If they are not, it compares their name and email address to the registered author data. If there is a match, the comment is blocked and a custom message is displayed. The name and email address comparison is case-insensitive.

Visit Tutorial

How to: Get Rid of links in your Comments

As WpRecipes became one of the most popular WordPress related blogs, I had to face the problem of people inserting links in comments. Some links are relevant, but some aren’t at all. here is a solution to say goodbye to links in comments.

Visit Tutorial

Displaying the Most Comments Post

To get started with this new year, what about displaying a list of the 10 most commented posts of 2008 to your readers? That’s obviously a great way to give a second life to your old posts. To display a list of your 10 most commented posts from 2008, simply paste the following code on your blog sidebar, or anywhere on your theme:

Visit Tutorial

Display Recent Comments and Top Comments

If you are a theme designer, or just enjoy customizing your existing WordPress theme, it can sometimes be a hassle digging around for the WordPress code you need. I’ve spent a lot of time on this site collecting various snippets of code since launch and decided that it would probably be more convenient and useful to people if I was to consolidate them all into one post for easy reference.

Visit Tutorial

Getting Rid Of The Nofollow Attribute On WordPress Blog

WordPress, like many other blog engines, uses the rel=”nofollow” attribute in comments for the so-called fight against spam. If this was a good idea, it is totally ineffective, and in addition, a link with this attribute will not receive any credit by Google when they rank websites. It is therefore clearly in the interest of bloggers to get rid of rel=”nofollow” attribute.

Visit Tutorial

How to Display Comments and Trackbacks

Let’s face it: When you’re reading comments on a blog post, trackbacks are annoying. It’s way better to display it separately from comments.

Visit Tutorial

Twitter Avatars in Comments WordPress

The objective was quite simple: create a plug-in that uses Twitter to show avatars in comments in WordPress blogs. But after discovering the potential of the Twitter API, the plug-in evolved into a complete “avatar for comments” solution for WordPress. The plug-in was developed by Ricardo Sousa, a young designer with a strong passion for WordPress and Joomla!.

Visit Tutorial

Display the number of Comments on your WordPress blog

In this tutorial we will learn how to show total number of comments at your blog using the $wpdb object. Use the following code where you want to display total number of comments at your blog.

Visit Tutorial

How to add “del” and “spam” Buttons to your Comments

Wouldn’t it be nice if you were able to mark a comment as spam, or even delete it, from your blog, without visiting your WordPress dashboard? If you’re interested, read on, you’ll probably not regret it. First, we have to create the function. Paste the code below on the functions.phpfile from your theme. If that file doesn’t exists, create it.

Visit Tutorial

Registered Users Comment Count

This will get approved comment count for each registered user.

Visit Tutorial

How to: Display Average Comments per Post

Do your blog gets a lot of comments? Here is an easy way to know the average comments per posts on your WordPress blog, using new functions introduced in WordPress 2.7.

Visit Tutorial

Display the Total number of Trackbacks on your WordPress

With a little modification, You can display the total number of trackbacks. we first have to create a function. paste the following code on the functions.phpfile from your theme:

Visit Tutorial

Share This Post

Related Articles

One Response to “20 Important Hacks for WordPress Comment Page”

  1. Nice Share “Separating Your Author Comments in WordPress” will help me to catagorize my blog comments.
    Than you

Leave a Reply

© 2013 . All rights reserved. Site Admin · Entries RSS · Comments RSS