WordPress.org

Ready to get started?Download WordPress

Forums

Own template for post or category. (5 posts)

  1. crowd
    Member
    Posted 2 years ago #

    Is it possible to choose a certain template for a post or a category, same as i do it for a page?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    not for a post, but for a category - http://codex.wordpress.org/Category_Templates

  3. crowd
    Member
    Posted 2 years ago #

    Thanks, alchymyth. It works great.
    So no option for the post? For i do need the post have the same design as its category.

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    need the post have the same design as its category

    depending on the how different the design between categories is, and if it is only formatting, you could try to work with css and use the category dependant css class output by post_class() to create category specific styles for single posts.

    http://codex.wordpress.org/Function_Reference/post_class

    or work with the conditional in_category() to build category dependant output sections in single.php;

    http://codex.wordpress.org/Function_Reference/in_category

  5. JohnPope
    Member
    Posted 2 years ago #

    I've used this plugin a few times, and it works really well.

    Let's you create as many different post templates as you want, and then select from a drop down menu in the 'edit post' screen.

    http://wordpress.org/extend/plugins/custom-post-template/

Topic Closed

This topic has been closed to new replies.

About this Topic