Title: Plugin custom post type single.php template
Last modified: August 30, 2016

---

# Plugin custom post type single.php template

 *  [detati_sean](https://wordpress.org/support/users/detati_sean/)
 * (@detati_sean)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-singlephp-template/)
 * I created a custom plugin which creates its own custom post type. For this post
   type I would like to create a single-{custom-post-type}.php template file within
   the actually plugin directory and not in the themes main directory. Is it possible
   to run a hook which will look for the template file within the plugin directory
   before looking inside the theme directory?

The topic ‘Plugin custom post type single.php template’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [detati_sean](https://wordpress.org/support/users/detati_sean/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-singlephp-template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
