Trackbacks are useful but has not been used to that level. Although wordpress platform is keeping it from their first release. When you link someone within your post then wordpress platform sends a track back to notify others that you have been linked somewhere. It sends the link of you blog post too. But what about linking your own blog posts and sending trackbacks to the internally linked post. This is something weirdo. Can we stop this default behavior of trackbacks?

How to Stop Sending Internal Linking Tracbacks.


Now you can disable this basic functionality of wordpress. There are basically 2 ways.

-> Doing it with a plugin.

-> Doing it with making changes in functions.php file.

First Method: Doing it with a plugin

There is a plugin called disable self pingbacks which removes the basic functionality of sending self trackbacks within your wordpress blog.

Download: Plugin

Hope you know how to install the plugin.

New to wordpress?

Login into your wordpress blog.

Go to plugins -> Add New and in the search box type disable self pingbacks.

Click install and you are done.

 

install plugin wordpress

 

Second Method: Without using Plugin

(for advance wordpress users only)

For this method you have to edit your functions.php file and add these lines:

function disable_self_trackback( &$links ) {

    foreach ( $links as $l => $link )

        if ( 0 === strpos( $link, get_option( 'home' ) ) )

            unset($links[$l]);

}

add_action( 'pre_ping', 'disable_self_trackback' );

 

Save your file and you are done.

 

Which method is better?

You must be wondering that if we can do it with a plugin then why rub hands in the mud of coding? There is a reason.

Plugins often requires database access to accomplish task and that generates extra load on wordpress. Actually it’s the other way round: when you can accomplish something without plugin then do it without plugin.

Although in this case this small plugin will not create any extra load so both the methods are good and will not cause your wordpress slow.