20 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

1501 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
+9 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

99 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has been part of the Envato Community for over 1 year
+4 more
designingmedia says

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

114 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
+4 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

20 posts
bojs says

Great suggestions everyone. Thanks! :)

221 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

1584 posts How's the surf doing?
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Had an item featured on Envato Market
  • Made it to the Authors' Hall of Fame
+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
469 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by