How to stop self ping from your own post

 

 

A blog pings all the pinging service that you have updated. Whenever you link your post to one of your own old posts, it will automatically send a pingback or self-ping. Some people find this feature useful. Others find it very annoying.  Let’s see how to stop self-ping of your own post.

 

stop self ping

 

Before we see the methods stop self-ping, let us see how self-ping was created. When your site self-pings with the internal link on your post, it creates a comment with the link of your own post. Below image shows the pingback comment on your dashboard

 

 

self-pings-on-comments

 

 

 

self ping on website- stop self ping

The above image shows the ping back or self ping created on the blog.

Methods to stop self ping

It is not possible to disable or stop self ping from the dashboard of your wordpress. There are two methods to stop the self pinging of your post. First method is with the help of codes and the second method is with the help of plugin.

How to stop self ping in functions.php file

This is one of the easiest method to stop self ping if you are well versed with the coding. You just need to add the code to your website theme.

Follow the steps below:

1. Login to your site.
2. From the dashboard, click on appearance and select editor.
3. Click on functions.php on the right hand side.
4. Add the code below to your theme’s functions.php file and click on apply at the bottom.

//remove pings to self
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’ );

adding-code-on-website-to-stop-selfping

 

If you are not willing to play with the code or afraid to edit your theme’s code, you can just follow the second method.

Disable self-ping with No self Ping plugin

You can just download the No Self Ping plugin and install it to stop self-pinging off your post. This plugin does the same job as the code mentioned above.

Advantages

No need to touch your themes coding.

Disadvantages

Additional plugin to your site.

Conclusion

You can use either the first method or install the plugin to stop the self-ping back of your blog. Some people wish to use an only limited number of plugins. For those, the first method is the best solution.

Comments

  1. Hi Umapathy,
    First time I visit on your blog and you solve my one big problem. Self pinging a headache for me, I can’t find any perfect solution for it, to stop it.
    Going to implement this tip on my blog.
    Hope this one going to be helpful for me.
    BTW thanks for this post.
    Hope you have a great weekend.
    -Hamim
    Md. Hamim Mondal recently posted…How to Set Up a WordPress Blog On HostgatorMy Profile

  2. Hi Hamim,

    Warm welcome to you. Self pinging was a problem to me once and found the solution after much research. Thought fellow bloggers would benefit if I could share the information.

    I am glad to know you were able to find the solution to your problem on this post.

    Thank you for visiting and sharing your experience.

    Have a great week end ahead 🙂

    ~Umapathy
    Umapathy recently posted…RevenueHits Review : Best Google Adsense alternativeMy Profile

  3. Informative one. while i suggest WP-Optimize also a way to stop and remove all pingbacks.
    Ahmad Rasheed recently posted…Lahore Waste Management Company Jobs Opportunity For Manager ProcurementMy Profile

  4. I have just downloaded the No sefl ping plugin and it is working great. Thanks

Speak Your Mind

*

CommentLuv badge

error: Content is protected !!