Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Elliot Alderton
Elliot Alderton
11,955 Points

Incorporating Advanced Custom Fields in a theme.

I'm creating a wordpress theme that I would like to go on and sell on wordpress.com. I'm using the Advanced Custom Fields plugin to create sections of the theme. How would I distribute the theme without losing the custom fields that I've set up? Many thanks.

3 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

If you are trying to sell your theme to wordpress.com, first of all good luck!!! They only tend to work with very experienced and well know theme developers.

Second, if it is for wordpress.com then you can't use plugins like acf.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

That said, to do it you will have to look into how to require plugins for a theme, have the user install the Plugin and then have your theme run a script that pushes your field data to the Plugin. 3 step process.

Elliot Alderton
Elliot Alderton
11,955 Points

Hi Zac, thanks for your message and just to say your Wordpress course videos have been excellent. Who would be an option to sell through that would allow me to use the acf plugin? Themeforest? And how would I incorporate the plugin in my theme?

I would love to see you do a Workshop video on this and also the following topics. -Security in Wordpress. -SEO in Wordpress.