8 posts
  • Has been a member for 0-1 years
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

1138 posts The Last Man Standing
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Exclusive Author
  • Bought between 10 and 49 items
  • Sold between 50 000 and 100 000 dollars
  • Football Contest Participant/Runner-up
+1 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

88 posts
  • Exclusive Author
  • Bought between 100 and 499 items
  • Referred between 1000 and 1999 users
  • Sold between 50 000 and 100 000 dollars
  • Grew a moustache for the Envato Movember competition
  • Europe
  • Has been a member for 1-2 years
designingmedia says

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

100 posts Norris & Tanita
  • Elite Author
  • Contributed a Tutorial to a Tuts+ Site
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Exclusive Author
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Envato Studio (Microlancer) Beta Tester
  • Europe
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
  • Has been a member for 0-1 years
bojs says

Great suggestions everyone. Thanks! :)

217 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • United Kingdom
NuclearThemes says

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

1190 posts How's the surf doing?
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • United Kingdom
  • Referred between 200 and 499 users
  • Exclusive Author
  • Has been a member for 3-4 years
  • Envato Studio (Microlancer) Beta Tester
+1 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
425 posts
  • Elite Author
  • Football Contest Participant/Runner-up
  • Bought between 50 and 99 items
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 2-3 years
  • Envato Studio (Microlancer) Beta Tester
  • Grew a moustache for the Envato Movember competition
  • Referred between 10 and 49 users
+1 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