Title: Help creating multiple single posts for different categories
Last modified: August 18, 2016

---

# Help creating multiple single posts for different categories

 *  [volsunga](https://wordpress.org/support/users/volsunga/)
 * (@volsunga)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/help-creating-multiple-single-posts-for-different-categories/)
 * Hi all,
 * I’m trying to make all the posts in the “women” category of my website appear
   differently to the rest of my posts when viewed as single posts, e.g. the same
   as the Women category page which has a distinct style compared to the rest of
   the site.
 * I followed the advice [here](https://wordpress.org/support/topic/help-creating-multiple-single-posts-for-different-categories/lorelle.wordpress.com/2005/09/22/creating-multiple-single-posts-for-different-categories/?output_format=md)
   and replaced single.php with the following code;
 * `<?php
    $post = $wp_query->post; if ( in_category('4') ) { include(TEMPLATEPATH.'/
   single2.php'); } else { include(TEMPLATEPATH . '/single1.php'); } ?>
 * where single1.php is my standard single post template and single2.php is the 
   special one.
 * So far, nothing doing. Anyone got any suggestions?
 * Thanks 🙂

Viewing 1 replies (of 1 total)

 *  [dannybcastillo](https://wordpress.org/support/users/dannybcastillo/)
 * (@dannybcastillo)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/help-creating-multiple-single-posts-for-different-categories/#post-435898)
 * [http://guff.szub.net/2005/07/21/post-templates-by-category/](http://guff.szub.net/2005/07/21/post-templates-by-category/)
   
   Just read and install the plugin. You won’t have make that if else statement 
   to make it work.

Viewing 1 replies (of 1 total)

The topic ‘Help creating multiple single posts for different categories’ is closed
to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [single](https://wordpress.org/support/topic-tag/single/)

 * 1 reply
 * 2 participants
 * Last reply from: [dannybcastillo](https://wordpress.org/support/users/dannybcastillo/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/help-creating-multiple-single-posts-for-different-categories/#post-435898)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
