N
N
nikfcsm2018-04-11 17:14:04
WordPress
nikfcsm, 2018-04-11 17:14:04

Where is the category post template located?

Tell me where is the template for displaying posts in the category?
https://normativ.org/category/lib/obraztsyi-dokumentov/
I thought they should be in the category.php file but it's not even created.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2018-04-11
@nikfcsm

https://wphierarchy.com/
category-$slug.php
category-$id.php
category.php
archive.php
index.php
In that order. The first pattern found is used.
There is also a nuance with child / parent themes. If you have a child theme, don't forget to look in the parent theme folder.
In general, install the Query Monitor plugin , it will show you which particular template is used, which components (template_parts), and where it all lies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question