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

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.