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:

Trackbacks and pingbacks enabled in WordPress

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

Insert link dialog box in WordPress admin interface

…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.


Add a comment
Comments RSS
Trackback URL

2 responses

2 comments

  1. Michael says:

    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.

  2. Gavin Wray says:

    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.

Add a comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Recent comments

  • Gavin Wray: Hi Peter – I’m afraid I don’t know. As mentioned at the top of the post: Updated 25th...
  • petergmauro: Has anyone found a way to track views , or add the tracking code to a DOCS page? I’m desperate , I...
  • Gavin Wray: Thanks for the comment. I’ve had another look in my Google Docs settings and it appears that Google...
  • Gold Fish Gardener: Thanks for putting this information together. However I tried to follow your instructions and the...
  • Gavin Wray: Thought I’d add an update after reading Lisa’s post on her online teaching blog. Since I...

More of me on the web