WordPress.org

Ready to get started?Download WordPress

Forums

different design per category (3 posts)

  1. Rokuzen
    Member
    Posted 9 years ago #

    Is there someway to chage the layout/design of a article based on it's category?
    eg click on an article from one category and it's is two columns and blue, the second is white and is 3 columns, and so on.

  2. Joshua Sigar
    Member
    Posted 9 years ago #

    Might want to take a look at this article
    http://elasticdog.com/2004/10/faking-multiple-templates/
    and to check what category you're in
    if( $cat == 1 ) {
    require( 'includes/cat1-index.php' );
    }
    else if( $cat == 2 ) {
    require( 'includes/cat2-index.php' );
    }
    else if bla bla bla

  3. Rokuzen
    Member
    Posted 9 years ago #

    sweet, that'll work
    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.