• Resolved Adz

    (@adz)


    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 than domainroot/category/cat1.
    But when I go to domainroot/cat1/subcat1 it doesn’t work.

    The problem is something to do with templates. domainroot uses home.php because it is_home(). cat1 uses category-cat1.php and cat2 uses category-cat2.php. Every other category should be using category.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 the home.php template. Just for testing, I eliminated home.php and it carried on through the hierarchy and used index.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.