I
I
Ivan Kozlov2016-03-24 09:26:26
Taxonomy
Ivan Kozlov, 2016-03-24 09:26:26

How to make pagination for taxonomies?

I am writing a website in wordpress. There will be a non-standard catalog site. Created my own taxonomy for posts and categories. those. similar to how wocommerce has product categories and products. The category taxonomy is called company, the product taxonomy is cop.
Created a taxonomy template file, even several with the same code archive.php, taxonomy-company.php, taxonomy.php . I created a menu from product categories, the links of which look like domain.ru/company/category name (wordpress itself generates such). Products are displayed on these urls. Everything is working.
When there are more products in one category than a fixed value, then pagination appears. And then a problem arises: when you go to another page, the url changes to domain.ru/company/category name/page/2 , the index.php template file is triggered and a 404 page not found error is returned.
How can I make the correct template file work and the server give the correct response (not 404)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kozlov, 2016-03-24
@trampick

Decided in a different way. Changed pagination to urls of this type: domain.ru/company/category name/?page=2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question