Title: The same post in different single.php files
Last modified: August 20, 2016

---

# The same post in different single.php files

 *  Resolved [199cm](https://wordpress.org/support/users/199cm/)
 * (@199cm)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/the-same-post-in-different-singlephp-files/)
 * Hallo!
 * I can’t figure out following thing – I have multiple single.php files (depend
   on category) for each chapter of my site. And I have home chapter, where all 
   the posts are displayed. Therefore every post should be displayed in different
   template depending from the place from where it is clicked.
    For example, post
   from category media, when clicked in Media chapter, appears in Media template,
   but clicked in Home chapter, should appear in Home template.
 * Any suggestions?
    Thanks in advance

Viewing 1 replies (of 1 total)

 *  Thread Starter [199cm](https://wordpress.org/support/users/199cm/)
 * (@199cm)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/the-same-post-in-different-singlephp-files/#post-2943881)
 * Solved by my self. In this case $SESSION variables are useful.

Viewing 1 replies (of 1 total)

The topic ‘The same post in different single.php files’ is closed to new replies.

## Tags

 * [post sorting](https://wordpress.org/support/topic-tag/post-sorting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [199cm](https://wordpress.org/support/users/199cm/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/the-same-post-in-different-singlephp-files/#post-2943881)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
