WordPress.org

Forums

is it possible to have category based design for single.php (4 posts)

  1. kloeschen
    Member
    Posted 9 years ago #

    I just wonder if it is possible to have a special theme for a single post depending on the first category it belongs to?

    Is there any tweak to achieve this?

  2. Jack
    Member
    Posted 9 years ago #

    Have you checked the codex?

    http://codex.wordpress.org/Plugins/Styles

  3. masquerade
    Member
    Posted 9 years ago #

    Instead, in single.php, you can use if(in_category(ID)) to block off portions of code that you want different on a per ID basis.

  4. Kafkaesqui

    Posted 9 years ago #

    See my Post Templates by Category plugin:

    http://guff.szub.net/post-templates-by-category/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.