You need the has_archive
option set to true
when registering your custom post type with the register_post_type
function, in order for the archive-{posttype}.php file to work.
You need the has_archive
option set to true
when registering your custom post type with the register_post_type
function, in order for the archive-{posttype}.php file to work.