How To Disable Search Engine Indexing On A Specific WordPress Post

By -

Most of the time, you want Google to index your posts as soon as possible. But if you want to disable search engine indexing on a specific WordPress post, just use this trick. We will use custom fields to prevent Google and other search engines from indexing a specific page of your WordPress website.

Open your header.php file and paste the following code between the <head> and </head> tags:

Now whenever you want to disable search engine indexing on a specific post, just add a custom field: noindex-post with any value in it to your post, and it will tell search engines to not index that page.

Hope this article helped you. If it helped you then please consider making a small amount of donation. Any amount, even $1.00, is appreciated.

Teen blogger and a huge pro-wrestling fan. Also known for bunch of websites. Formerly worked as a lawn gnome and scare crow.

Leave a Reply

Are you concerned about your WordPress website's security? Download our FREE PDF book to learn about WordPress security and how you can make your WordPress hacker-proof!