Disable Trackbacks & Pings for Existing Posts & Pages in WordPress
Is your WordPress site suddenly being plagued with unwanted and spammy trackbacks? Its a common problem and one that can take a while to fix especially if your website has a lot of content published already.
This quick fix will go back and set ‘Allow trackbacks and pingbacks on this page.’ to disabled.
First – log into your server/host control panel and look for your Phpmyadmin

Open this and then select the database that is being used for your website from the list on the left

Now click on the SQL tab
Now we’re going to execute an SQL query to look for any post or page that is published and ‘ping_status’ to closed.
So, copy this code
|
1 2 |
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'; |
and paste it into the text area

Now go back to your website and ‘Allow trackbacks and pingbacks’ will be disabled for posts and pages.
Recent Comments