WordPress.org

Ready to get started?Download WordPress

Forums

How to make special template file for posts in a category (4 posts)

  1. wagawaga
    Member
    Posted 7 years ago #

    Hi,

    I got one category name A. And the category use its own template file. category-3.php

    I would like to make special template file for each posts within category A, that is without using the single.php template file. How to do that?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    You don't. All individual posts use the single.php template file, if it exists. You can change that code to do different things depending on what category they're in though.

  3. rudolf45
    Member
    Posted 7 years ago #

  4. wagawaga
    Member
    Posted 7 years ago #

    Thanks. Really helpful.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags