23 posts
  • Has been part of the Envato Community for over 1 year
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

1885 posts The Last Man Standing
  • Had an item that became a weekly top seller
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Helps us moderate the forums
+11 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: Sold more than $75,000 on Envato Market
  • Had an item featured on Envato Market
  • Had an item that was trending
  • Sells items exclusively on Envato Market
+5 more
designingmedia
says

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

130 posts Norris & Tanita
  • Had an item that was trending
  • Had an item that became a weekly top seller
  • Sells items exclusively on Envato Market
  • Taught a course or tutorial on Tuts+
+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
  • Has been part of the Envato Community for over 1 year
bojs
says

Great suggestions everyone. Thanks! :)

221 posts
  • Has been part of the Envato Community for over 4 years
  • Located in United Kingdom
  • 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

1755 posts How's the surf doing?
  • Power Elite Author: Sold more than $1M on Envato Market
  • Had an item that was trending
  • Became a Top 20 Author of the Month
  • Achieved the monthly Community Superstar Award
+9 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
  • Helped several times protecting Envato Market against copyright violations
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
+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