Configuration
Make sure you've installed Alchemy Options either as a plugin or as part of your theme. Then add a function to the init
hook in your functions.php
. Sample configuration objects are available for a quick copy and paste.
That's it, just add some options instead of /* options will go here */
and see them appear on the Alchemy Options page.
Grouping
If there's a need to split options into several groups, Alchemy Options has got you covered. You may add the tabs
section to the config that looks like this:
Keys of the tabs
array should be unique, these values will be used in configuring of each option with the tab
key. If no tab
key is found in each option's settings it will be rendered in each tab.
Thus, the $options
variable from above will look like this:
If there's a need to split options even further, there's a sections
type for visual splitting of fields into togglable sections and a field-group
type to group related fields together for an easier value retrieval.
Last updated