(Posted this question also here: http://josschuurmans.com/2014/03/18/why-does-mywordpresswebsite-comcustomposttypename-show-a-blog-post-instead-of-the-custom-post-types-archive/)
I created a child theme of Attitude by Theme Horse, which I dubbed “Attitude Lapsi” (directory: “attitude-lapsi”).
I created a custom post type “tontti” (plural: “tontit”), and custom fields for it using the Advanced Custom Fields plugin.
I created a page template file “single-tontti.php”, to edit the front-end display of the contents from the “tontti” post type’s custom fields. This works and looks fine on the front-end.
I created a page template file “archive-tontti.php”, to edit the archive page of the custom post type in question. According to the WordPress Codex at https://codex.wordpress.org/Post_Type_Templates, I should be able to view to output of this archive at http://www.mywebsite.com/tontti/, right? But I can’t.
Instead of displaying he archive page at http://www.mywebsite.com/tontti/, WordPress serves me a blog post of which the headline starts with the word “Tonti”.
Is this a bug or a feature? Should I have created a page called “Tontti”? What gives?
Much appreciated,
Jos