Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey there,

    Apologies on my delayed response, I have been out of town.

    Custom post types don’t work out-of-the-gate. You’ll need to add the following to your functions.php file or a custom plugin file:

    function stf_add_cpt_support( $post_types ) {
        $post_types[] = 'project';
    
        return $post_types;
    }
    add_filter( 'scripts_to_footer_post_types', 'stf_add_cpt_support' );

    Let me know if that doesn’t work or if you have any other questions!

    Thanks,
    Joshua

    Thread Starter hmahdavi921

    (@hmahdavi921)

    OK. This code worked correctly.
    Thanks a lot.

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Glad this worked for you, let me know if you have any other questions or issues!

    Thanks,
    Joshua

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin dont work in custom post types’ is closed to new replies.