Support » Fixing WordPress » Weird Problem – Either Tag template works or Custom Post Type template

  • Resolved Gautam Thapar

    (@gautamanizer)


    Hello, I am trying to develop a theme for myself and today I ran into a problem where if I choose ‘post name’ permalink then only custom post type template works and not the tag template. But when I choose ‘numeric’ both works wherein the difference as I see is that in tag url /archives is added before /tag.

    I tried a lot of things but can’t find the solution to getting both work with ‘post name’ permalink.

    Need HELP guys, thanks.

    I currently have these template files on my theme –
    archive-custom-post.php
    category.php
    tag.php

    And I am currently testing my theme on local machine.

Viewing 1 replies (of 1 total)
  • Thread Starter Gautam Thapar

    (@gautamanizer)

    I was able to solve it myself 🙂

    The problem was that I had a custom taxonomy with the slug ‘tag’ so that is why the default tag template wasn’t working.

    Pheeeww!!! Problem finally solved!

Viewing 1 replies (of 1 total)
  • The topic ‘Weird Problem – Either Tag template works or Custom Post Type template’ is closed to new replies.