Quantcast
Viewing all articles
Browse latest Browse all 10

Prevent trackbacks when linking between posts within your WordPress site

Image may be NSFW.
Clik here to view.
Lots of green trackback icons in a row

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:

Image may be NSFW.
Clik here to view.
Trackbacks and pingbacks enabled in WordPress

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

Image may be NSFW.
Clik here to view.
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.


Viewing all articles
Browse latest Browse all 10

Trending Articles