Forums

Custom categories (2 posts)

  1. tjobbe
    Member
    Posted 9 months ago #

    I have four post categories that I wish to display in a different manner.

    By different I mean that I wish to call a different template for each category, so I have news, events, blog, etc, but each category will have a different layout but still call the posts from its category.

    I know that you can have different templates for pages, but you cant seem to do this for posts or category sections?

    Can anyone advise me on this?

  2. cais
    Member
    Posted 9 months ago #

    You can have different pages for displaying specific categories. From your examples you would be looking at page names such as:

    category-news.php
    category-events.php
    category-blog.php
    category-etc.php *grins*

    You can start with your main index.php file and copy it into the above file names making adjustments as you see fit. Then when a reader clicks on a category your blog will read the display details from the specific category page.

    Here is a link to more detailed reading:

    http://codex.wordpress.org/Category_Templates

Reply

You must log in to post.

About this Topic

Tags

No tags yet.