Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

How to Disable Self Pingback or TrackBack

Whenever a post is published WordPress automatically pings major Search engine bots and other services, also the sites mentioned in the Ping List to let them know that you have updated your website. It is all good and well but the problem comes when WordPress starts self pinging the blog. So today I will tell you how to disable Self Pingback or TrackBack

Self Pingback is when a blog pings itself or you can say it pings internally. well the easy way to understand is that you ringing the bell of your own home even when you at home. i.e. example.com/abc pings to example.com/xyz which is completely wrong because pingback is used when an external website mentions about your website i.e. domain.com/dfg pings to example.org/abc

above relation explained

above relation explained

I hope you understood it well enough now lets come back to topic of How to disable self Pingback or Trackback, for that just open your functions.php and add the below code :

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' );

That is all, the above code is wrote by Paulund and he also made a plugin out of that code so you can also give the plugin a try.

The last thing I want to say is that Pingback and Trackback are different but almost works the same, Pingbacks are automated when a post is published, it pings to websites mentioned in a Ping List and Trackback is done when a post is manually mentioned in a different website, Like how I mentioned about Paulund in this post, that is a kind of trackback, for more information check the post by carmen about pingback and trackbacks she has mentioned it nicely with pros and cons of it.

Subscribe via Email

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to email a link to a friend (Opens in new window) Email

Related

January 16, 2014 Ritesh Sanap WordPress functions.php, How To, Pingback, trackback, Tricks

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: Top 5 free online Gaming Sites
Next Next post: How to download Specific parts of YouTube videos

Currently Trending

  • How to download Specific parts of YouTube videos
    How to download Specific parts of YouTube videos
  • Windows Vista CD key
    Windows Vista CD key
  • How to retrieve my Demonoid username
    How to retrieve my Demonoid username
  • How to add Logo to Thesis theme
    How to add Logo to Thesis theme
  • How to Delete Feedbacks from JetPack Contact Form
    How to Delete Feedbacks from JetPack Contact Form
  • List Of All 255 Keyboard All Alt Key Codes
    List Of All 255 Keyboard All Alt Key Codes
  • h4x0r ( Hacker ) - Blogger Template
    h4x0r ( Hacker ) - Blogger Template

Get Latest post in your Inbox

Random Posts

How to add back to top button

March 2, 2009 By Ritesh Sanap Leave a Comment

LastPass – Free Password Manager

August 5, 2014 By Ritesh Sanap Leave a Comment

Random post with Summary widget for blogger

June 12, 2010 By Ritesh Sanap 1 Comment

How to use google as proxy

January 16, 2008 By Ritesh Sanap Leave a Comment

Google Talk for Chrome – Chat for Google

December 2, 2012 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2025 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean