Published by John Hoff on 07 Jun 2008 at 01:00 am
Hack WordPress

Found a great website for hacking up your WordPress blog.
I found it by doing a search on how to separate my trackbacks from user comments in my comment section.
Nothing sucks more than trying to read what other users have to say in comment sections (especially on popular articles) and I have to skip through all the trackbacks. It really interrupts the conversation - but, we still all love those incoming links.
Unfortunately, there are no plugins yet that do this automatically for you, or at least none that I have seen. You will actually have to get into your blog’s php code and add a few lines. It’s super easy. Just follow the step-by-step instructions shown on the site.
My suggestion is to make sure you back up your comments.php file by copying and pasting the original code into a text file. Then if you do something wrong, simply paste that old code back into the file.
I did change one thing, though. Instead of having all my trackbacks appear above my “Submit Comment” textarea, I made them appear below it so as to keep it easy for readers to comment.
In other words, I added this code here:
<h3>Trackbacks</h3>
<ol>
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type != ‘comment’) { ?>
<li><?php comment_author_link() ?></li>
<?php } ?>
<?php endforeach; ?>
</ol>
Just above this line here:
<?php endif; // If registration required and not logged in ?>
If you want to give it a try and need my help, send me an email or comment here. If you want to see what it looks like, link to this post and see where your link appears.
Related Posts
- Allowing Readers To Subscribe To Your WordPress Post Without Commenting
- Securing Securing Your WordPress Blog: Post 6 - Protecting The wp-config.php File
- Securing Your WordPress Blog: Post 4 - Setting Up .htaccess
- Securing Your WordPress Blog: Post 5 - What To Do If Your Blog Is Cracked
- Start A Blog: Free or Paid? WordPress or Blogger?
|
|

Barbara Swafford
on 07 Jun 2008 at 1:55 am #
You’re funny John,
“It’s super easy”……haha.
When I started blogging I didn’t even know what a php file was. I do now.
I’m not getting too many trackbacks, but when I do, I know where to get the information from.
Question. What’s the difference between receiving a ping vs a trackback?
Barbara Swafford’s last blog post..Book And Product Reviews Generate Traffic
John Hoff
on 07 Jun 2008 at 7:18 am #
Yeah what’s easy to some, is alien to others. I suppose it’s super easy for some people. If you ever decide to add the code to do this, I’ll do it for ya!
Good question about the difference between the two. They basically use similar technology but are used for two different purposes:
Pings
Pings are used to notify search engines that you have written a new blog article. If it weren’t for pings, it could take weeks for your blog article to be indexed. Most blogging software comes with automatic pings built into the template, if not, you could use sites like Ping-o-Matic.
Trackbacks
Trackbacks are when two blogs talk to each other. If you link to one of my articles, your blogging software sends a message to my blogging software and says, “Hey yo! I just sent you some link love, can you show everyone on your site and link back to me?”