Disabling monthly\yearly archives for a custom post type
-
In a plugin I wrote, I’ve registered a new CPT named “faq” and disabled archives using
'has_archive' => false
When I try to access example.com/faq/ – everything works as expected and I get a 404.
Unfortunately, when I access example.com/2014/04/?post_type=faq I get monthly archives for the faq type, generated using the template’s Archive.php.I’m looking for a way to change this behavior without changing the template’s files.
Help? Please? ??
- The topic ‘Disabling monthly\yearly archives for a custom post type’ is closed to new replies.