Title: Adding to custom post types
Last modified: August 20, 2016

---

# Adding to custom post types

 *  Resolved [Tristan Bacon](https://wordpress.org/support/users/tristanbacon/)
 * (@tristanbacon)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/adding-to-custom-post-types/)
 * Hi,
 * My site will be making use of custom post types, and I want to adapt your plugin
   to let me select templates for custom posts. You mention in the readme and the
   Other Notes section that there is some code for the functions.php file ‘below’,
   but I can’t find it.
 * Can you help?
 * Thanks,
 * Tristan
 * [http://wordpress.org/extend/plugins/wp-post-template/](http://wordpress.org/extend/plugins/wp-post-template/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [IndiaNIC](https://wordpress.org/support/users/indianic/)
 * (@indianic)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/adding-to-custom-post-types/#post-3304242)
 * in function.php
 * add_filter(‘cpt_post_types’, ‘my_custom_post_type’);
 * function my_custom_post_type($_post_type) {
    $_post_type[] = ‘your_post_type’
   return $_post_type; }

Viewing 1 replies (of 1 total)

The topic ‘Adding to custom post types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-template_d8b781.svg)
 * [Post Template](https://wordpress.org/plugins/wp-post-template/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-template/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-template/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-template/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-template/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-template/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [IndiaNIC](https://wordpress.org/support/users/indianic/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/adding-to-custom-post-types/#post-3304242)
 * Status: resolved