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

  • Resolved Tristan Bacon



    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?



Viewing 1 replies (of 1 total)
  • Plugin Author 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.