Is it possible to create a search page that will search for a keyword only in a custom post type that has the status “draft?”

Basically, I have a lot of data I was planning on importing as a custom post type. The data would be simple, “name”, “answer”, “notes.” However, I don’t want this data published because each custom post would have almost no data and the site would then have 5,000 spammy pages.

However, users frequently want to know the “answer” for certain “names,” and I need to give them the ability to search and find.

Read more here: Custom Search for Drafts in Custom Post Type


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: