If someone after taxonomies they do not work, give a 404 error, it is necessary to pass “wp-admin” -> “Settings” -> “Permalinks” and press button “Save”.
At the root of the template is a file “roots/index.php”, he tells us how to handle the file “category (output categories)” - <? Php get_template_part ('templates/content', get_post_format ()); ?>
I do taxonomy “Services”.
In your templates, I named the files as follows:
http://joxi.ru/Az8yVP3JTJCbZ729w18
“roots/templates/content-services.php” - is responsible for handling categories
"roots/templates/content-single-services.php" - is responsible for processing a single page
at the root of the template “roots” to create a file:
“roots/single-services.php” - it put the following code <? php get_template_part ('templates/content', 'single-services'); ?>
, Ie in this file, I show that a single record in the file is processed - “roots/templates/content-single-services.php”
also at the root of the template I created a file “roots/index-services.php”, which placed:
<? php while (have_posts ()): the_post (); ?>
<? php get_template_part ('templates/content-services', get_post_format ()); ?>
<? php endwhile; ?>
as it did loop, everything works perfectly, but the file is not processed - “roots/templates/content-services.php”, instead vozvraschaetsya to the “roots/index.php”. Which contains the code:
<? Php get_template_part ('templates/content', get_post_format ()); ?>
In the file. Therefore, one file is processed at all taxonomies - “roots/templates/content.php”
It turns out that as a taxonomy, everything works perfectly, except for the display of data categories taxonomies, because there is something that brings index.php. Therefore it is necessary to understand how to properly name the file “roots/index.php”?
The options are:
“roots/loop-services.php”
“roots/index-srvices.php”
“roots/services-index.php”
“roots/category-srvices.php”
Not one bit of it does not load. If we get together to solve this problem, all turn.
Sorry for my bad english.
Updated: The right decision at the root to create a “root/archive-services.php” and it do as well as in “root/index.php”