Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Adding Widget Areas to the Front Page

Alternative to using widgets

As an alternative to using widgets to code and easily edit the 3 subheading sections, can't we create a custom post type and custom post parts to achieve the same result?
Which method is preferable?

1 Answer

Tim Knight
Tim Knight
28,888 Points


I would say that it comes down to flexibility. You can absolutely do a custom post type. That would let you let the fields and content that are added within those areas. There widget areas can help though is if you don't have a solid plan as to the content that will necessarily need to be added to that space or if you or you client need for that are to be open for changes. Using widget areas allows you to be able to drag and drop multiple widgets into one widget area. So in my opinion it's really just about flexibility.

Thanks! I would like to add as well that search functionality does not apply to widgets, so if someone needs the widget content to be searched they should opt for the custom post types method.