Results 1 to 3 of 3

Thread: Different single-default.php for different categories?

  1. #1
    Thread Starter
    Junior Member mark1975's Avatar
    Join Date
    May 2010
    Location
    United Kingdom
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Different single-default.php for different categories?

    At the moment, to put it simply, if the post is in the blog category the single.php file loads the single-blog.php file and if it's not it loads the single-default.php file.

    I want to have a customized single-xx.php file for different categories.

    I want to create several single-default.php file such as: single-cat1.php, single-cat2.php, single-cat3.php etc then use the single.php file to load the respective file depending on the category, I am sure this is possible but I am unsure of the code I need to use.

    Thanks for your help.

  2. #2
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts

    Here's One way

    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    sitespronto's Avatar
    Join Date
    Jun 2014
    Location
    Curitiba-PR-Brasil
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)