A
A
Alexander Sinitsyn2015-12-19 10:52:49
WordPress
Alexander Sinitsyn, 2015-12-19 10:52:49

How to name the template for displaying a list of posts for a custom type?

Surely there is in the net, but I can’t find it, it gives out everything wrong.
There is a new post_type "banks" for posts like /banks/bank-name found that the template is page_banks, and which template outputs the link /banks ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2015-12-19
@Punkie

archive-banks.php - based on regular archive.php.
And the template hierarchy: https://developer.wordpress.org/files/2014/10/temp...
d61e7185da474916bd26021d392efa1b.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question