11 May
2009
I’m a big fan of revisiting posts within a blog and linking to related posts. Whether adding cross-references in the body of the text or at the end of a post by using one of the many related posts plugins, I think they can give real benefits to readers.
Linking between posts is also essential if you’re writing a series of related posts.
But one result of linking between posts has always bothered me. Trackbacks or pingbacks displayed in the comments on your own post don’t make sense in the context of your own site; trackbacks and pingbacks only make sense where other people link to your post.
So how do trackbacks and pingbacks appear in the first place?
In WordPress, if you’ve enabled trackbacks and pingbacks for the post you are writing:

…and you add an absolute link to a second post within your site:

…a trackback will appear in the comments list of the second post.
How to prevent trackbacks for posts within your own site
You can prevent trackbacks appearing when linking between posts on your own site by using a relative link, rather than the absolute link.
For example, use the relative link:
/link-to-another-post
…instead of the absolute link:
http://www.yoursite.com/link-to-another-post
Hat tip to Tim J for the answer to my request on how to solve this issue.





Music on

For some reason trackbacks won’t even display on my blog (presumably there’s a template tag missing from my heavily customised theme). This used to bother me, but actually I’ve come to realise that I find trackbacks get in the way.
As you say, they’re generally out of context. Also they tend not to give enough information to glean the context they were written in, you have to leave the current page in order to read them, and often their authors are referring to the original post but not actually commenting on it.
If I ever get around to figuring why trackbacks won’t display on my blog, I might try bunching them together at the end of the comments. That way they should make sense as a group, and not interfere with the discussion.
Thanks for the comment Michael. Have you got the default setting to allow trackbacks for all posts switched on? In WordPress, go to Settings > Discussion and select the checkbox for ‘Allow link notifications from other blogs (pingbacks and trackbacks.)’
If you get the trackbacks to display on your blog, you may find Michael Martin’s tutorial useful on editing comments.php so that trackbacks are displayed separately from comments. I used it on this blog and think it helps having the trackbacks displayed after the comments list, so that they don’t get in the way.