Disable archives page for custom post type

QUESTION: How to remove or disable custom post type’s archive page?

I have created survey plugin, the survey questions will be a custom post type. How can I make the archives page for my CPT be disabled?

Read More

For instance, when I edit the URL:

http://localhost/wordpress/survey/surveyquestion1 to

http://localhost/wordpress/survey

it displays all the questions which I don’t want to happen.

Related posts

1 comment

Comments are closed.