0

In Wordpress I created 2 templates :

  • The first template is a custom homepage
  • The second template is custom page for for post results(search by category, search by keywords)

enter image description here enter image description here enter image description here enter image description here

After that I specified them in Wordpress

enter image description here

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.

  • You can't use page templates for the custom posts page, besides, all of that can be done with search.php, hidden inputs, and URL parameters, there's no need for the page template – Tom J Nowell Oct 16 '18 at 19:28
0

For categories you would have to edit the archive.php or rather to be specific the category.php file.

https://codex.wordpress.org/Category_Templates

That page will give you an idea of the specificity you can go with template files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.