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

Cristinel Laurentiu
Cristinel Laurentiu
1,821 Points

Portfolio Support

Why don't we code inside the theme to have the theme to support portfolio? I just want to give the theme to someone to reuse it...or if we want to build themes to sell it...we don't give theme with cpt ar advanced custom fields. Can someone direct me to a link on how to do that? Thank You!

3 Answers

Flor Antara
Flor Antara
12,359 Points

Hello Cristinel,

Unfortunately, there are things that just need to be extended in WordPress, and for that we use Plugins.

Advanced Custom Fields is a fantastic plugin. If you create your Theme using ACF Fields, and you need to distribute it, you can take a look at their License. Read more here: https://www.advancedcustomfields.com/resources/including-acf-in-a-plugin-theme/

More interesting resources regarding your concern:

Cristinel Laurentiu
Cristinel Laurentiu
1,821 Points

Hi Flor, thanks for taking the time to answer my questions. I have seen themes which do not come with ACF plugin and have the portfolio custom post type included and in the same time I want to improve my skills. Thanks again! +

P.S. I think I love you for this link https://generatewp.com/post-type/ - great resource.

Flor Antara
Flor Antara
12,359 Points

Sure! I'm glad you found it useful. Keep it close! You'll use it a lot!