Support » Plugin: Post Template » Adding to custom post types

  • Resolved Tristan Bacon

    (@tristanbacon)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author IndiaNIC

    (@indianic)

    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.