Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
9 years, 3 months ago
This question already has answers here:
9 years ago.
If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean:
Add new custom post type
Add new fields to the Users
Add new widgets
Add custom permalinks
I am leaning to creating new plugins for the above, and leave the theme for styling, however I wanted to confirm if this is the right approach.
Feb 4, 2014 at 20:37
2,086 7 7 gold badges 28 28 silver badges 52 52 bronze badges
Yes, the types of customizations you are enumerating are
persistent to the site, regardless of theme changes. They are indeed commonly recommended to be contained in a plugin.
Personally I consider there is exception from the rule when theme is uniquely developed to the site and de-facto
is site project. However I am tad in minority about it and most people insist on plugin approach even in that case.
Feb 4, 2014 at 20:43
98.8k 10 10 gold badges 153 153 silver badges 294 294 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only