Separating Trackbacks from Comments in WordPress 2.7+
Back when WordPress 2.7 was released, the WordPress team introduced a completely revamped comment form that included integration of threaded comments into the core software, introducing some dramatic changes with how comments are handled. Unfortunately, this change broke one of the most popular comment hacks, separating trackbacks from comments.
Since then, several people have stepped up and shared some great hacks for separating trackbacks from comment in WordPress 2.7 or newer blogs . So far the best guide I’ve found came from Sivel.net, which can be viewed here. Click over and follow those steps get everything separated.
Note: The above guide is only for people using WordPress 2.7 or newer installations. For people using WordPress 2.6 or earlier, you’ll want to use this tutorial.
Once you’ve got the comments successfully separated from the trackbacks, there are a couple additional tweaks you may want to do to clean up how things look (it really depends on preference I suppose). The first is to clean up your trackbacks/pingbacks by only displaying the title instead of an excerpt and everything else. In order to do this, you’ll need to find the following code in your comments.php file:
<ol>
<?php wp_list_comments('type=pings'); ?>
Now replace that code with the following:
<ol>
<?php wp_list_comments('type=pings&callback=list_pings'); ?>
Lastly, you’ll need to add the following code to your functions.php file (which can be created if you don’t already have one):
<?php
function list_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?>
<?php } ?>
That should clean up the trackbacks/pingbacks section and you can also apply the same changes if you use a plugin to display tweetbacks.
The other thing you may want to do is fix the comment count to only show actual comments, filtering out the trackbacks/pingbacks which are included in your comment count by default. Simply add the following code to your functions.php file (which again can be created if you don’t already have one):
<?php
add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $count ) {
if ( ! is_admin() ) {
global $id;
$comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id));
return count($comments_by_type['comment']);
} else {
return $count;
}
}
?>
So there you go. Anyone have any other tips for cleaning up your comment form?
CustomTheme.com Officially Launches
Over the past year I’ve had the privilege of getting to know Leland through his excellent WordPress resource, Theme Lab. While most designers have turned their attention to building premium WordPress themes, Leland is one of the few who has continued to release quite a few completely free WordPress themes which are of a comparable quality. Through his work with the WordPress community, he has been able to build a nice reputation as a coder and also build a loyal following.
About a month ago, Leland made me aware of a new project he was working on, building a business around the outstanding domain name CustomTheme.com. As you’d expect, this new project is a service building custom WordPress themes. While speaking with Leland, I was given the opportunity to be among the first to give the CustomTheme.com service a try (before it officially launched). I jumped at the opportunity and ended up having him build a custom design for a new website I’m working on, Blog Tutorials. Blog Tuts is similar to WPHacks.com, but will be expanded to cover SEO techniques, blogging tips, etc.
As far as the new design goes, here is a screen shot of the new custom design which was built specifically for Blog Tuts:

Last night I got the new design loaded on Blog Tuts and today I received word that Custom Theme was finally ready for the official launch, so I wanted to take a moment and let our readers know about this new service. According to the services page, Custom Theme is able to accommodate just about any type of WordPress design you may need, including blog themes, magazine themes, gallery themes, and even CMS themes.
As of the publishing of this article, right now the beginning rate for purchasing your own custom design is as low as $299.00, which you’ll find is very competitive within the custom theme market.
Want to learn more about this new service? Check out CustomTheme.com!
Few Improvements to the WPHacks.com Design
This post is just a heads up to let everyone know that the WordPress Hacks theme has been updated with a few new features added, courtesy of my friends at Blog Design Studio. Some you will notice right away, while others you may not.
Here are the notable changes included with this new update:
- Threaded Comments – Now that the discussions have increased in the comments of our posts, I felt that it was important to support threaded comments, which became available way back when WordPress 2.7 was released. You can now reply to individual comments without them falling all the way to the bottom of the page.
- Twitter Integration – Twitter is quickly replacing FeedDemon as my “feed reader” of choice, and I know I’m not the only one. As a result, I felt it was important to integrate Twitter into the WPHacks.com design. You’ll now find recent tweets in the sidebar, a tweet this button below each of our posts, and the comments section now supports the Tweetbacks plugin, displaying your tweets about WordPress Hacks content.
- Author Profiles – Single pages now display author profile information below each post. If you have written for us in the past and have your own author page, you may want to contact me to request I update the information, or you can login to your author account and update your profile page!
The remaining changes were mostly “under the hood” things done to clean up the code a little bit and make sure everything was running smoothly. If you have any questions or notice anything that isn’t appearing correctly, please let me know!
WordPress 2.8.4 Now Available for Download
Yesterday there was a ton of discussion via Twitter and on several blogs regarding a comment reset “exploit” which surfaced for the WordPress 2.8.x branch. To avoid recapping the exploit, if you want to learn more about this exploit, check out this great post from our friend Leland of Theme Lab. Along with this exploit came the speculation that WordPress 2.8.4 was soon to follow with a fix.
Well, it turns out these people were correct, as this morning I found a friendly message in my dashboard telling me that WordPress 2.8.4 was ready for me to upgrade! This was especially good news for me, as for some reason people believe that because I run a WordPress fan blog, that they should try it out on this website.
WordPress Theme Frameworks
Over a year ago, I was among those that speculated on custom widgets and their role in the future of WordPress themes. One thing that wasn’t speculated on, however, was the rise of WordPress theme frameworks. Now, just over a year later, many of the leaders in the premium themes market are building their own internal frameworks which are used as the backbone to design their premium WordPress themes. For example, Woo Themes now has their own Woo Framework. Brian Gardner of StudioPress also recently informed me that he is also developing a framework for his StudioPress themes.
Premium theme designers are not the only ones using frameworks these days, however, and a few can actually be used by anyone in the development of their own personal themes! As with traditional WordPress themes, WordPress theme frameworks have free options, as well as paid alternatives. In the post below, I’ve collected the five major theme frameworks, and I intend to update this post as I learn of more WordPress theme frameworks.
Note: If these theme frameworks look a little plain, that is intentional. Frameworks are designed for someone to use as a building point, so they lack a lot of images and design elements. Once downloaded (or purchased), you can then build upon the framework to make your design. Many of these frameworks also include child themes, which allow you to quickly convert your framework into a ready to use design.
Thematic WordPress Theme (FREE)

Thematic is a free, open-source, highly extensible, search-engine optimized WordPress Theme Framework featuring 13 widget-ready areas, grid-based layout samples, styling for popular plugins, and a whole community behind it. It’s perfect for beginner bloggers and WordPress development professionals.
Thematic Framework | Live Demo
WP Framework (FREE)

WP Framework is a blank WordPress theme framework by Ptah Dunbar, which aims to cut down on your theme development time. It gives you a solid theme foundation to build your project on top of so you can focus on project-specific features right from the git-go.
WP Unlimited Framework (Single-Use $59.00 | Developer’s Pack $150.00)

The WP Unlimited theme has a fairly simple design but a very complex control panel, allowing the user to set up their blog without touching any code. Once the functionality is in place, then you can easily customize the design to meet your personal needs. Here is a screen shot of the control panel:

Thesis Theme Framework (Single-Use $87.00 | Developer’s Pack $164.00)

The Thesis theme framework is the most popular theme framework which has a cost associated with it and has built a loyal cult following. Among those followers are some very high profile WordPress sites built upon the Thesis framework, then customized for their personal needs. You can look through a list of these clients on their homepage.
Among the reasons people love Thesis is their attention to SEO techniques and the complex control panel:

One Theme Framework + One Panel (Single-Use $60.00 | Multiple-Use $110.00+)

By default, One Theme offers a variety of styles/looks to choose from and a complex control panel to get your site setup without having to hard code anything. The One Theme also features several child themes to give the user more customization options.
In addition to the design, you get their comprehensive control panel which they call One Panel:
One Panel Control Panel

One Theme Framework | Live Demo
Know of a WordPress theme framework we are missing? Please leave a comment or let us know about it!

















