I've created a plugin that registers a custom post type named evento_type:
register_post_type( 'evento_type', ...
The CPT archive page is archive-evento_type.php and it is saved in the root directory of the plugin. It works like a charm. I think the single post page of the CPT should be named single-evento_type.php and that it should be saved in the root directory of the plugin, just like the archive page. I've created single-evento_type.php, but Wordpress keeps ignoring it and using the default post page instead, no matter how many
flush_rewrite_rules();
I scatter throughout the code and how many times I force permalinks recreation by manually switching the permalinks settings. WP keeps using my CPT archive page (which is the right thing) and happily ignoring my single post page.
I'm using WP 4.4.1 and the Wiz Theme, if that matters. I've googled a lot for this problem, but every solution I've found so far is about flushing rewrite rules or double-triple-billion-checking the files names, which I've already done.
How do I make WP use my single-evento_type.php instead of the default?
EDIT after Milo's comment: I wonder how could I be so blind. WP is not loading the archive template either, because I'm artificially generating the archive page with a standard page and a shortcode... I had forgot about this, er..., detail, and I was assuming WP was automagically finding my archive-evento-type.php file...