The has_archive
parameter for register_post_type()
does exactly what you expect it to do. However, it modifies rewrite rules when set. So, if you change it to false
, you’ll need to flush your rewrite rules in order for the archive index display to be removed entirely.