• Resolved Morsus

    (@morsus)


    Hello great people of wp community.
    I got a weird problem (or I just don’t get it).

    I created a custom post type and a custom taxonomy like this.

    As the title says problem is with their “category” (tax) pages.
    I have these files with only header,file name and footer.

    • archive-cat.php
    • archive-post.php
    • archive-product.php
    • archive.php
    • category.php
    • home.php
    • taxonomy-cat.php
    • taxonomy-product.php
    • taxonomy.php

    These all pages are just for testing purposes. All I would like is to split “category” (tax) page and blog archive still even with all these files both:

    • localhost/cat/cat-term and
    • localhost/news (selected blog page)

    loads home.php, if I remove home.php they both load index.php.
    I tried setting permalink in CMS to plain and then back to post name as this solved most of similar problems on these forums but no luck.

    Anyone have an idea what could I do next?
    Thank you for your time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Morsus

    (@morsus)

    Shouldn’t it load taxonomy-cat.php or archive.php via localhost/cat/cat-term/ by documentation?

    • This reply was modified 7 years, 10 months ago by Morsus.
    Thread Starter Morsus

    (@morsus)

    Okay lets try this again.

    My custom category page (/cat/cat_term) is loading index.php even if archive.php exists.
    Again the same page loads index.php even if archive.php, category.php, taxonomy.php, category-cat.php and taxonomy-cat.php all exist.

    My selected blog page (/news) is loading index.php if no home.php is present. (which is expected behaviour).
    Altho soon as I create home.php both /cat/cat_term and /news load home.php even if all of the files mentioned above exist.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom taxonomy templates’ is closed to new replies.