Developer's Custom Fields
custom fields display on fresh install of my (3 posts)

  1. feelfree
    Posted 4 years ago #

    For my school project, I am creating a theme that ships ACF and Thematic Options Panel plugins as a part of the theme. As user installs this theme, I am using TGM activator class to prompt users to install these 2 plugins. Thematic plugin shows all the custom options that I have added to the theme but ACF doesnt bring up the custom fields that I have set up inside this plugin (using the front-end).

    I am now wondering if I should try developers custom fields instead of ACF. Will it be possible to display the custom fields in a template as user installs my theme?


  2. Steve Taylor
    Plugin Author

    Posted 4 years ago #

    I'm not sure I completely understand the question - I've not done any bundling of plugins with themes myself. But I'm guessing that you define the custom fields in ACF with a GUI, and they're stored in the database - and maybe that information isn't as portable as you'd like?

    For Developer's Custom Fields, you define custom fields with PHP code in your theme (or possibly plugin). See http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/#functions-boxes-fields. So, you should be able to ship your theme's custom fields as part of the theme package easily. Most settings, too - I've coded the plugin intentionally with no GUI, so no options are stored in the database.

    Hope this answer helps!

  3. feelfree
    Posted 4 years ago #

    This's brilliant! Thank you so much Steve.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Developer's Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic