23 posts
  • 1 Year of Membership
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

1891 posts The Last Man Standing
  • Weekly Top Seller
  • Author Level 8
  • Beta Tester
  • Moderator
+10 more
ImanGM
Moderator
says

Hey,

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

Cheers,
Iman

101 posts
  • Elite Author
  • Featured Item
  • Trendsetter
  • Exclusive Author
+5 more
designingmedia
says

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

130 posts Norris & Tanita
  • Elite Author
  • Trendsetter
  • Weekly Top Seller
  • Author Level 9
+6 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

23 posts
  • 1 Year of Membership
bojs
says

Great suggestions everyone. Thanks! :)

221 posts
  • 4 Years of Membership
  • United Kingdom
  • Author Level 3
  • Collector Level 2
+2 more
NuclearThemes
says

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

1763 posts How's the surf doing?
  • Power Elite Author
  • Trendsetter
  • Top Monthly Author
  • Community Superstar
+10 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
516 posts
  • Super Copyright Ninja
  • Weekly Top Seller
  • Elite Author
  • Author Level 8
+8 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