I have created a custom post type called "Projects".
My permalinks settings is postname and I'd like to keep it that way.
I created a page template named projects.php (Template Name: Projects) and added the script to list the projects in this page.
I added a page with the template selected as Projects.
However, when I'm viewing this page in the frontend, it calls the default archive page instead of the Projects page template.
How do I fix this?
The default archive page has its own format for displaying stuff, for example, the page title displays like Catagory: Projects.
I want a separate page template for the projects page and keep the archive page for the categories and tags. Just like for the blogs there's a blog page and then a separate archive page, I want something similar for the custom post type as well instead of calling an archive page for everything!
archive-projects.php
as per the codex? codex.wordpress.org/Post_Type_Templateshas_archive
when you registered your post type? WordPress automatically generates an archive if you want it, you don't need to create a page with a custom template and query.