0

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?

1 Answer 1

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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