WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make a web application based on wordpress. This application needs some text data to process and then display to users. For that I use a custom post type. So far so good.

Problem is, I do not want the data (some posts) to be accessible by normal way, but only by my custom queries which process them. I do not want users to have any chance of seeing that data. Is there any way to disable post form being read by default loop and allow only my own queries?

share|improve this question

Try using 'publicly_queryable' => false when registering your CPT.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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