Have you ever written a blog post which links to another post within the same blog in WordPress? Has it annoyed the heck out of you when it triggered it pingback to the other post?

If you answered yes to both of those questions, then install the excellent “No Self Ping plugin” by Michael D. Adams. It disables that annoying functionality from WordPress and keeps your comments uncluttered by irritating self-pings.

Alternatively, you can simply copy and paste the following code into your themes functions.php file:

function no_self_ping( &$links ) {
	$home = get_option( 'home' );
	foreach ( $links as $l => $link )
		if ( 0 === strpos( $link, $home ) )
			unset($links[$l]);
}

add_action( 'pre_ping', 'no_self_ping' );

We needed a pretty picture to beautify the page. So we 'borrowed' this image as it seemed like a good visual representation of the sound of a 'ping'.