Define custom post types in theme itself or in an accompanying custom plugin?

[ad_1]

Suppose I build a theme for a generic agency and there are pages which list custom post types like Services, Testimonials, and Projects. If the user installs the theme on a fresh WP installation, the theme would not be compatible since such post types don’t come out of the box.

So to ensure that the theme is reusable without the admin having to play around with the ACF plugin, do I define the custom post types in my theme’s functions.php file or do I make a plugin which needs to be installed for the theme to function properly?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer