8 posts
bojs says

So guys I need suggestions about how to add custom fields to the theme, or better say, what would be the most ‘themeforestish’, best, way to do it?

I’m used to Advanced Custom Fields plugin, and I always use it to create custom fields for my own projects, and I’m very happy with it, I can create whatever I want in minutes, which is great. But now, that I’m working on my first Themeforest theme, I know I have to be more careful about what I use how I should solve things like that :)

So should I do it: - using ACF (which is something I’m most used to) - doing it manually, WP Codex way (which is definitely the hardest for me, since I never did it that way before) - some other way that I don’t know about?

How do you crate custom fields for your themes, what do you do, what’s the best solution for that?

Thanks, Bojs

1319 posts The Last Man Standing
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been a beta tester for an Envato feature
  • Sells items exclusively on Envato Market
+7 more
ImanGM says

Hey,

Please take a look at OptionTree. It’s very easy to use theme options panel which supports metaboxes as well.

Cheers,
Iman

94 posts
  • Has referred 1000+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
designingmedia says

A good source for you : http://generatewp.com/post-type/

111 posts Norris & Tanita
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
ThemeVillage says

We’re using ACF for fields, and Redux Framework for options and loving it. No reason of “rolling your own” until there is a real reason to do so. I rather invest my time in the themes I build.
Norris

8 posts
bojs says

Great suggestions everyone. Thanks! :)

219 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
NuclearThemes says

Take a look at “Custom Metaboxes and Fields for WordPress”: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress

1386 posts How's the surf doing?
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+6 more
tommusrhodus says

Take a look at “Custom Metaboxes and Fields for WordPress”: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress

+1 it’s awesome :)

Also for theme options, you should be (in my opinion) using WordPress’ built in options API:

http://codex.wordpress.org/Theme_Customization_API
441 posts
  • Helped several times protecting Envato Market against copyright violations
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Sells items exclusively on Envato Market
+7 more
Jaynesh says

+1 it’s awesome :)

Also for theme options, you should be (in my opinion) using WordPress’ built in options API:

http://codex.wordpress.org/Theme_Customization_API

+1

I was using ACF in my previous themes but In my next theme I switched to the Theme Customization API and I’ve never looked back.

by
by
by
by
by
by