M
M
Mikhail2020-06-01 16:34:29
WordPress
Mikhail, 2020-06-01 16:34:29

How to display custom post types with categories in a template?

Hello!
I'm trying to solve 2 tasks to display custom post types:
1) Display a taxonomy of custom post types in the assigned template.
2) Get sections of nested taxonomies or categories of custom post types to work.

At the moment, I managed to display posts from the taxonomy with pagination,
but not in the template I assigned, but on the index.php page.

Links to pages with custom post types work and pages open.
I can't figure out why taxonomy entries are not displayed in the taxonomy-proizvoditeli.php template, I
tried to create templates: category-proizvoditeli.php, arhive-proizvoditeli.php, but they are not displayed in them either, they
only display in index.php.

The second problem is that when I click on a taxonomy section and subsection, I get a 404 error.
Pemalink updated, links of post types and taxonomies made.

Please help me figure it out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-06-02
@Mishaermolaev

Found the answer here. God bless the good person who wrote this article!
https://tokmakov.msk.ru/blog/item/399

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question