Comments on: Separate Trackbacks from Comments on Your WordPress Blog https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/ DailyBlogTips.com takes you from SEO to CEO. You’ll learn everything you need to know to master blogging, SEO, marketing, web design leading you to passive income. Mon, 24 Jul 2023 21:54:35 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Adam Cleaner https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-1045272 Fri, 18 Dec 2009 18:31:04 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-1045272 salenco: unfortunately it seems this method is no longer a solution as worpdress has changed the way it works in 2.8.4. i wish this article would have the date it was posted as then it would be obvious if something was a little old or not

]]>
By: Sapan https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-1013822 Sat, 07 Nov 2009 12:04:16 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-1013822 Thanks a lot for this useful tutorial…

It did the work for me.. 🙂

]]>
By: salenco https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-950042 Sat, 15 Aug 2009 13:58:33 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-950042 Nice tutorial, but I cant find in comments.php. Im using WordPress 2.8.4 with the last Cutline template with one right column.

Thanks for reading.

]]>
By: thelongmile https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-890464 Mon, 08 Jun 2009 21:15:40 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-890464 Thank you so much! this has helped me solve a long standing problem on a theme I’m developing with on my testing server

]]>
By: joyologo design shop 2.0 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-857927 Fri, 01 May 2009 22:45:48 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-857927 really helpful post thanks a lot..

]]>
By: Daniel Brauer https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-773271 Fri, 13 Feb 2009 17:51:36 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-773271 What is captcha code?, pls provide me captcha code codes or plugin, Thanks in advance.

]]>
By: Hikari https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-766791 Fri, 06 Feb 2009 19:22:34 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-766791 VERY nice!

I was gonna implement this on my theme but when I looked it was already implemented! 😀

I think nobody trackbacked me at all :/

]]>
By: paul https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-759417 Thu, 29 Jan 2009 11:52:00 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-759417 Have tried trackbacks and they worked for me.Try today

]]>
By: Ken https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-678044 Sat, 29 Nov 2008 00:20:55 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-678044 Something has changed since the WordPress 2.7….

]]>
By: Geoserv https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-522649 Mon, 07 Jul 2008 14:49:57 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-522649 STUMBLED!

I definitely agree with this. Nothing worse than trying to read comments and having to wade through trackbacks.

Submitted this post to:

]]>
By: todotuto https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-448877 Mon, 12 May 2008 10:23:06 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-448877 Excuse-me, false alarm, the problem was another one.

]]>
By: todotuto https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-448729 Mon, 12 May 2008 07:30:59 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-448729 In one of my blogs I have implanted east code and I have had it to clear because it gave a problem me in post that has 103 commentaries, was not finished loading the page. 🙁

]]>
By: Rajaie https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-445859 Sat, 10 May 2008 13:00:28 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-445859 Your blog is a perfect example

]]>
By: Leo F. Swiontek https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-367122 Sun, 30 Mar 2008 10:29:41 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-367122 Good to see the code and thanks for providing that. I look forward to seeing Davids for/ each code to make this even more useful, thanks

]]>
By: photodropper https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-326439 Fri, 22 Feb 2008 17:44:33 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-326439 Awesome. Thanks for the tip – I just added this to our site – it really does make the blog look cleaner.

]]>
By: Free Blog Templates https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-286727 Fri, 25 Jan 2008 16:48:38 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-286727 @ David Zemens (comment #14)

Great tip…I implemented it per your code. Just make sure when you add this code in the loop

it’s above this code

I had it the other way around and if you don’t have any comments on the post but some trackbacks, the trackbacks won’t show.

Great article overall..thanks for the tips!

~David

]]>
By: Nick - road2blogging https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-281208 Mon, 21 Jan 2008 00:27:00 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-281208 Thanks for the tip, I think I’m going to have to implement this when I get my new design next month.

]]>
By: Napster https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-269036 Fri, 11 Jan 2008 20:22:31 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-269036 Excelent tutorial guys! Keep it up!

]]>
By: Matt https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-268681 Fri, 11 Jan 2008 15:32:50 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-268681 Thanks a lot – just added the code to my theme 🙂
Tried Davids Zemens Mod… hopefully I did it right 😉

]]>
By: Joe https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-267232 Thu, 10 Jan 2008 17:13:05 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-267232 I just did this on my blog. Awesome. Thanks!

]]>
By: Thilak https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-266595 Thu, 10 Jan 2008 06:48:14 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-266595 Ouch! I got my theme designed by Micheal, but it doesn’t separate comments from trackback. Thanks for the reminder, I’ll do it right away.

]]>
By: Inge https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265540 Wed, 09 Jan 2008 11:00:57 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265540 There’s a terrific plugin for this purpose that will exactly do all this for you, but then automatically. Advantages: less work, no extra work when you upgrade WordPress, and numerous other interesting options regarding how to display your comments.

]]>
By: CypherHackz https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265326 Wed, 09 Jan 2008 07:59:02 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265326 That is what I want to implement on all my themes I use. Thanks for the tips.

]]>
By: Glenda Watson Hyatt https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265157 Wed, 09 Jan 2008 05:20:49 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265157 Thanks! That wasn’t painful at all. But, to have the trackbacks appear before the comment headings, I had to insert the `Trackbacks section BEFORE the comments header – instructions say after. Or did I misinterpret something?

]]>
By: pablopabla https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265130 Wed, 09 Jan 2008 04:52:15 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265130 Yes, I learnt from Michael when he posted his tutorial. My blog looks much better now by having the trackbacks nicely separated from the comments. Definitely neater that way.

]]>
By: Jermayn Parker https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265069 Wed, 09 Jan 2008 03:57:26 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265069 Good to see the code and thanks for providing that. I look forward to seeing Davids for/ each code to make this even more useful, thanks

]]>
By: Joel https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265000 Wed, 09 Jan 2008 02:55:59 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-265000 I have been playing with my theme over the past few weeks.

I found a tutorial about separating the comments and trackbacks. It involves a separate function (split_comments) that I have in my functions.php file. My theme is kind of warped, so I did some major overhauling of it and hopefully made it a little easier to work with.

I have included Gravatars in the comments, separated the comments and trackbacks, and after reading some of these comments, I added a simple if statement to keep from displaying the Comments header when there are only trackbacks. I think the split_comments function is what allows me to easily run the if statement.

I just used that code, modified it a bit, and then threw in the following right before the Comments header.

if ( count( $bm_comments ) > 0 ) {

}

]]>
By: Daniel https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264776 Tue, 08 Jan 2008 23:19:49 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264776 David, send the code to me via email and I will update it here.

]]>
By: David Zemens [1955 Design] https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264730 Tue, 08 Jan 2008 22:40:31 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264730 In order to limit the Trackbacks header to displaying only when their actually are one or more trackbacks, I modified your code to assign a variable in your original For/Each loop:

<?php if($comment_type != ‘comment’) { $is_trackback = “is_trackback”; } ?>

This code checks to see if ANY of the comments in the loop are
trackbacks, and assigns the variable as shown.

Then, in the code that displays the actual trackbacks (which in my case
is below the comments) this is my code:
<?php if ($is_trackback == “is_trackback”) { ?>
<h4>Trackbacks to Other Blogs</h4>
<ul id=”trackbacks”>
<?php foreach ($comments as $comment) : ?>
<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type != ‘comment’) { ?>
<li>

]]>
By: Daniel https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264655 Tue, 08 Jan 2008 21:07:51 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264655 Both, but I think in WordPress.com you need to pay to be able to edit the stuff.

]]>
By: Fashion By Jenni https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264607 Tue, 08 Jan 2008 20:27:07 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264607 Is this wordpress.com or wordpress.org or both?

]]>
By: Carla https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264476 Tue, 08 Jan 2008 18:40:34 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264476 thanks for the tip

]]>
By: Michael from Pro Blog Design https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264441 Tue, 08 Jan 2008 18:03:10 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264441 Thanks for the credit link Daniel. Separating out the trackbacks is one of the easiest ways to improve commenting on a blog. They’re a nusiance otherwise! 🙂

]]>
By: Ben https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264330 Tue, 08 Jan 2008 16:16:41 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264330 I wrote about this some time ago and use a slightly different method.

I am also making a theme that makes use of the same code. I’ve been thinking about making a plugin that does this for you but am not sure how best to work it since people style and lay out their comments in different ways.

]]>
By: Vijay https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264281 Tue, 08 Jan 2008 15:11:31 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264281 Thankfully, my theme does it by default. And I must say that it is a very useful feature.. And thanks a bunch for the tut!

]]>
By: Daniel https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264272 Tue, 08 Jan 2008 15:03:25 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264272 Not that I know, would be easy to code one though, I will check with some coders to see if they are interested.

]]>
By: TheBloggerTips https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264269 Tue, 08 Jan 2008 15:01:03 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264269 Is there any plug-in for this trackbacks feature?

]]>
By: Daniel https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264250 Tue, 08 Jan 2008 14:45:17 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264250 Jorge, I saw someone doing it on another blog also, I will try to find it out.

]]>
By: Jorge Otero https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264247 Tue, 08 Jan 2008 14:41:50 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264247 Great tip. I think it needs a bit of extra work in order to display the “Trackbacks” header only if there are any trackbacks. I’ll see if I can hack it.

]]>
By: David Zemens [1955 Design] https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264237 Tue, 08 Jan 2008 14:33:59 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264237 Terrific post! I was literally wondering how to accomplish this when I stumbled on your post. Great advice. I implemented it on my blog within five mintues and it works great!

Thank you.

]]>
By: Justin Dupre https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264211 Tue, 08 Jan 2008 14:15:15 +0000 https://dailyblogtips.com/separate-trackbacks-from-comments-on-your-wordpress-blog/#comment-264211 Thanks for this! I will definitely be looking at my coding and configuring it on my blog!

Justin Dupre

]]>