WordPress.org

Ready to get started?Download WordPress

Forums

Plugin: Post Templates by Category (3 posts)

  1. Kafkaesqui

    Posted 8 years ago #

    PTbC lets you set custom templates for all posts in a category. You can impose the default category template (i.e. category-5.php) on posts in that category, or a separate, single posts template (single-cat-5.php).

    For more, and to download:
    http://guff.szub.net/post-templates-by-category/

  2. orion_koch
    Member
    Posted 8 years ago #

    Hi,

    I see that I can choose a specific template for a post when I write it.

    But I don't understand how the category part works.

    I did a lot of searching but I'm failing to find a simple explanation about this part.

    If I have a category named "Newsletters" and I want to control the appearance of each individual post (single.php view), I can do that when I write or edit a sinle post.

    I would like a very simple explanation of what is supposed to happen when I go to the "Presentation->Post Templates" menu and select the "Newsletters" category and assign it a template.

    Does this do a mass update of all individual posts? Or does this affect the look of the "List of Posts" that you see when you click on a category link on the side bar?

    Any help is appreciated.

    Thanks

  3. alexkoti
    Member
    Posted 7 years ago #

    In Manage > Categories, check the ID of category named "Newsletters".

    (i.e. "Newsletters" ID = 3), the filename of Newsletters template is "single-cat-3.php".

    Others examples:
    Photos > ID 12 = single-cat-12.php
    Events > ID 8 = single-cat-8.php

Topic Closed

This topic has been closed to new replies.

About this Topic