Title: Multiple single.php template for the same post
Last modified: August 21, 2016

---

# Multiple single.php template for the same post

 *  Resolved [morollian](https://wordpress.org/support/users/morollian/)
 * (@morollian)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-singlephp-template-for-the-same-post/)
 * Hi there!
 * I’m currently working on a project where I need to display the same post in two
   diferent ways. Here is how it should be:
 * Post 1 is in categories a and b.
    Post 1 can be listed using the category-a.php
   or the category-b.php templates.
 * Is there any way to display the Post 1 using single-a.php, when the user clicks
   in the category-a.php list, and to display the same post using single-b.php when
   the user comes from category-b.php?
 * I’ve thinked in passing some variable to the permalink structure, but this may
   be a little tricky, and I’m not sure if that’s the best way to aproach this. 
   Maybe WordPress has a better way to handle this, but I don’t know any, some help
   would be really apreciated!
 * Thanks a lot!

Viewing 1 replies (of 1 total)

 *  Thread Starter [morollian](https://wordpress.org/support/users/morollian/)
 * (@morollian)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-singlephp-template-for-the-same-post/#post-4814665)
 * I’ve tried [this aproach](http://wordpress.stackexchange.com/questions/9573/load-post-with-a-different-template).
   Works like a charm!

Viewing 1 replies (of 1 total)

The topic ‘Multiple single.php template for the same post’ is closed to new replies.

## Tags

 * [category template](https://wordpress.org/support/topic-tag/category-template/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [theme development](https://wordpress.org/support/topic-tag/theme-development/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [morollian](https://wordpress.org/support/users/morollian/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/multiple-singlephp-template-for-the-same-post/#post-4814665)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
