[Plugin: WP No Category Base] Broken Subcategory Template
-
Hey,
First off, thanks iDope for creating such a useful plugin.
The structure of my site is something like this. domainroot | |-------------------| cat1 cat2 | |--------|-------| subcat1 subcat2 subcat[...]
(I hope that doesn’t strip out all the spaces)
So, with this plugin, I can go to
domainroot/cat1
rather thandomainroot/category/cat1
.
But when I go todomainroot/cat1/subcat1
it doesn’t work.The problem is something to do with templates.
domainroot
useshome.php
because it is_home().cat1
usescategory-cat1.php
and cat2 usescategory-cat2.php
. Every other category should be usingcategory.php
.But
domainroot/cat1/subcat1
uses the wrong template.
First I had an issue with the Taxonomy template, because I had a taxonomy with the same name as the cat1 and taxonomies overrule categories.
Once I eliminated the taxonomy, it started using thehome.php
template. Just for testing, I eliminatedhome.php
and it carried on through the hierarchy and usedindex.php
. For some reason, is_home() is returning true.I disabled then re-enabled the plugin but that had no effect.
EDIT: I don’t know what caused it, but I managed to fix it somehow. In case anyone else has the same issue:
1) Disable the plugin
2) Go to the permalink settings and press the save changes button.
3) Re-enable the plugin
4) Repeat step 2.Works for me now.
https://www.ads-software.com/extend/plugins/wp-no-category-base/
- The topic ‘[Plugin: WP No Category Base] Broken Subcategory Template’ is closed to new replies.