Get to know every line of your comments.php WordPress theme file

There is one WordPress theme file that I almost never touch when working on a theme: comments.php. I usually style WordPress comments via the CSS sheet, and that’s that.
Well, there’s a lot you can do to customize and extend WordPress comments if you just know how. Nettuts has published a comprehensive tutorial on how the comments.php file works, and what every line of code does. The tutorial also explains how to add extra goodies to your comments, like Gravatars, comment numbers, comment links, alternating colors (which we’ve discussed here), displaying the HTML tags users can use in the comments text box, and displaying a link to the comments RSS feed. The tutorial did not discuss how to give each comment its own link, a tip that I find particularly handy for referring to specific comments.
Check out this tutorial if you want to strengthen your relationship with your WordPress…

You Might Also Like...

  • The Naughty Daughters

    591 readersIndie-Rock From Austria.

  • How to Override the Slug or Page Permalink in WordPress

    1691 readersThe Problem: Recently, one of our clients wanted to change the slug, or permalink, from “about-2″, back to just plain ol’ “about”.  I tried changing the slug from the “quick edit” mode. I tried to Edit the Permalink from the Post Page. No luck, it kept reverting back to about-2.  After doing a few searches,

  • How to get around WordPress’ limitation on uploading certain file types

    1720 readersOne of our clients needed to upload files via their admin, and kept getting the following error message: “File type does not meet security guidelines. Try another.” This was something new to us, and after doing some research we discovered that WordPress only allows users to upload certain types of files, and any files that

  • ZDNet says WordPress not clunky, but also not CMS

    447 readersLarry Dignan over at ZDNet writes about the media’s relationship with CMS systems, particularly his own past experiences with custom-built CMS systems. He says that “when it comes to ease of use, a blog platform beats or [sic] average CMS hands down.” So he asks why it is that he’s always getting stuck with some

  • When a WordPress plugin for foreclosures is released, you know it’s a recession

    253 readersI always think I’ve seen everything, until something even crazier comes along. Foreclosure.com, a site that lists nationwide foreclosure data, has released a WordPress plugin that adds foreclosure listings to their Web sites. The WordPress Foreclosure Listings Plugin delivers a complete real estate search and navigation environment quickly and easily by querying the Foreclosure.com database

  • Hebrew Installation, UTF-8 and Sufficient Permission in WordPress

    2089 readersI just published a Hebrew website with a Hebrew installation of WordPress. I first built the site locally, and then moved the database over to the client’s site.  When I tried to log in, I got this beauty of an error “You do not have sufficient permissions to access this page” in Hebrew, of course.

  • Audio Player WordPress plugin automatically adds audio player to posts

    549 readersAmazingly, I have never had to deal with podcast or audio files before in a WordPress blog or site. But a recent client needed a way to easily and attractively add mp3 files to her posts. At first I tried the Podcasting plugin, but I didn’t have much luck. Then I tried the Audio Player

  • Display posts from specific categories on a Page

    446 readersYou may want to display posts from a specific category on the homepage or other pages of your site. For example, you might want to have a box that displays the latest three posts from your News category, or have links to your latest podcasts. In a previous post, I gave the code that would

  • 450+ WordPress Plugins

    I want a WordPress plugin to…

    383 readersSo you’ve got a shiny new WordPress blog, and you really want to add a cool feature that either demands programming the feature into your site, or even better, finding the perfect plugin so that you can add the feature with a few clicks. The conventional way of finding plugins is to either search the

  • How to Change Permalink Structure in WordPress without Duplicate Content

    375 readersRecently we had a client who wanted to change their Permalink structure from Old Permalink structure: /%author%/%category%/%postname%/ to: New Permalink structure: /%author%/%category%/%postname%/%post_id%/ so that they would qualify for Google News. Apparently you need at least 3 digits in your URL in order to qualify for Google News. I wanted to simply change the Permalink structure