In Wordpress I created 2 templates :
After that I specified them in Wordpress
The custom homepage is successfully shown when I visit the website, but when I click on a specific category, my custom posts page is not showing and I get the default page instead.
In Wordpress I created 2 templates :
After that I specified them in Wordpress
The custom homepage is successfully shown when I visit the website, but when I click on a specific category, my custom posts page is not showing and I get the default page instead.
For categories you would have to edit the archive.php or rather to be specific the category.php file.
https://codex.wordpress/Category_Templates
That page will give you an idea of the specificity you can go with template files.
search.php
, hidden inputs, and URL parameters, there's no need for the page template – Tom J Nowell ♦ Commented Oct 16, 2018 at 19:28