2

I am using custom post types to add certain sections to my website. These post types are not meant to be treated like a blog, it's basically just an easy way for me to give the client access to managing certain sections, such as "reviews." Today I noticed that Google is indexing these custom post types and I was wondering how I can prevent that.

For instance, "reviews" is one of my custom post types and Google is indexing mywebsite.com/reviews as well as mywebsite.com/reviews/review, which looks terrible because there is no layout for it.

Is there any way to prevent Wordpress from even creating these sections? Thanks!

6

If you write code for registering custom post-type try adding these attributes

public => false, has_archive => false, publicaly_queryable => false, query_var => false

Otherwise, set these options to false in plugin that you might be using.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.