• Resolved drgoettel

    (@drgoettel)


    Hello,
    I’m creating a new theme and everything seems to work well. I understand that when the home is loaded, wordpress reads home.php. When a category is displayed, wordpress reads category-#.php.
    I have tags associated to the news. This tags are displayed under the content of the new, while reading single.php (using <?php the_tags( ‘<hr><p>Tags: ‘, ‘, ‘, ‘</p>’); ?>)

    Now, the problem is when I click one of these tags, I don’t know what file is used as template to show all the posts under this tag.

    Could anyone help me with this?
    Thankyou

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter drgoettel

    (@drgoettel)

    you have to use tag.php. If it doesn’t exist then archives.php is used.

    I just encountered the same problem, and it’s not archives.php that’s used, but archive.php. That’ll save all three people who read this approximately 3 seconds of their life. I just saved 9 seconds!

    A.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘help with tags in custom template’ is closed to new replies.