REQUIRED: The theme uses the register_post_type() function, which is plugin-territory functionality.

hi ! guys , whats up !

okay so was working on theme , i have been using the Theme Check plugin and got that err

REQUIRED: The theme uses the register_post_type() function, which is plugin-territory functionality.

well this my first time into wordpress development , what i understood so far is that registering custom posts type is a plugin territory , should i remove my function from the theme’s functionality and use and register them as plugin !
or i could this err pass through !

Yes. All your custom post types should be added as a plugin. Do not include it on your theme.

1 Like

thanks mate :slight_smile: