How to disable WordPress comments, pingbacks and trackbacks


Now days pingbacks and trackbacks are mostly SPAM when it comes to WordPress. To disable them completely, first backup your database. Afterward open phpmyadmin, select the database, click SQL and run the following commands:



UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post';
UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'page';


Afterward go into your settings area, select discussion and disable these features.


If you are having a problem with comment SPAM and would rather remove and disable comments you can use a plugin like WP-Cleanup and use the following in phpmyadmin:



UPDATE wp_posts SET comment_status='closed' WHERE post_status = 'publish' AND post_type = 'post';
UPDATE wp_posts SET comment_status='closed' WHERE post_status = 'publish' AND post_type = 'page';




  • 162 Users Found This Useful

Was this answer helpful?

Related Articles

Optimize WordPress Performance

With our service, there are many ways to dramatically speed up the performance of your WordPress...

WordPress Site Search

Adding search functionality is a wonderful way to add functionality and pleasure to a visitors...

504 error - Are you sure you want to do this?

In wordpress if you receive either of the following errors when trying to upload a theme... 504...

Unable to create directory uploads/... Is its parent directory writable by the server?

Unable to create directory... Is its parent directory writable by the server? This error can be...