Title: alternative to single.php
Last modified: August 21, 2016

---

# alternative to single.php

 *  [bouinfrederic](https://wordpress.org/support/users/bouinfrederic/)
 * (@bouinfrederic)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/alternative-to-singlephp/)
 * Hi,
 * I’ve created a portfolio plugin which creates a page that displays an image gallery
   of custom posts. Each image in the gallery is the featured image of the custom
   post in the portfolio. When you click an image in the gallery you are sent to
   a post page that displays the content of the custom post. The content of this
   custom post are displayed on single.php. My question is, how do I get these custom
   posts to use a different template than single.php?
 * Thank you

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/alternative-to-singlephp/#post-4285652)
 * [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
   
   [http://codex.wordpress.org/Template_Hierarchy#Single_Post_display](http://codex.wordpress.org/Template_Hierarchy#Single_Post_display)

Viewing 1 replies (of 1 total)

The topic ‘alternative to single.php’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/alternative-to-singlephp/#post-4285652)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
