On my page-projects.php template page I am outputting image posts from my CPT 'projects'.
I want to add a 'see all' link to my 'archive-projects.php (using: echo get_post_type_archive_link('/projects');), but it's linking to the same page-projects.php that I am on...
Why is it linking to my custom post type page that I am already on and not my custom post type archive page?
If your page who list projects
slug is projects
AND your archive slug is also projects
WordPress will always display your page.
The archive page need to have a different slug.