Title: single.php not working for custom post type
Last modified: August 20, 2016

---

# single.php not working for custom post type

 *  Resolved [masok88](https://wordpress.org/support/users/masok88/)
 * (@masok88)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/singlephp-not-working-for-custom-post-type/)
 * Hey,
 * I’m using two post types on my site. The default and a custom one I’ve built.
 * single.php works on my default posts but I can’t for the life of me get it to
   work with the custom one I’ve made. I thought the page hierarchy would have it
   default to single.php? I even tried making single-typename.php file with no effect.
 * Any idea what could be going wrong?

Viewing 1 replies (of 1 total)

 *  Thread Starter [masok88](https://wordpress.org/support/users/masok88/)
 * (@masok88)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/singlephp-not-working-for-custom-post-type/#post-2824123)
 * Weird, I went to the permalinks settings. Didn’t do anything then went to the
   post types entries in admin and hit preview on a post and now it all works.. 
   bizarre.
 * [http://wordpress.org/support/topic/custom-post-types-the-single-php-problem?replies=8](http://wordpress.org/support/topic/custom-post-types-the-single-php-problem?replies=8)

Viewing 1 replies (of 1 total)

The topic ‘single.php not working for custom post type’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [masok88](https://wordpress.org/support/users/masok88/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/singlephp-not-working-for-custom-post-type/#post-2824123)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
