Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

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.