Custom page for a specific page returns the archive page

Hi I’m having a strange problem, in a project I’m working on I’ve created almost 50 custom pages for specific pages (and they all work).
I just added two more pages and strangely they render the archive-page.
The procedure I’m using is always the same:
In the WordPress admin panel, I create the page giving a specific name and “slug”,
then in my theme folder (same place as the other working pages), I create a document called page-slug.php, and inside I code the content of that custom page.
In the past, I had a similar problem and it was enough to resave the permalinks one or more times, and the problem went away. This time it persists.
Does Anyone have any Idea Why?



Source link