easy way to add custom fields to your object types & to generate option pages..
The goal of this plugin is to help you build familiar, intuitive interfaces for your users in WordPress-native way..
Currently, Custom Metadata Manager works with user, comment and any built-in or custom post types, e.g post, page, etc..
Here's code sample add action function my theme init custom fields { if && function exists ) { x add metadata field ) } }.
Options and Overrides $args = 'priority => 'default, 'autosave => false, Should the group be saved in autosave.
hidden ) to hide it from the Custom Fields box. $object types The object types to.
Options and Overrides $args = array ( 'group =>, The slug of group the field should be added to.
This needs to be registered with x add metadata group first 'field type => 'text, The type of field 'text, 'textarea, 'password, 'checkbox, 'radio, 'select, 'upload, 'wysiwyg, 'datepicker, 'taxonomy select, 'taxonomy radio 'label =>, Label for the field 'description =>, Description of the field, displayed below the input 'values => array, Values for select and radio buttons.
For example, with the following, field-1 will show up for all posts except post #123 $args = array x add metadata field.
You can pass in array of IDs $args = array ) With multiple object types, you can pass in associative array $args = array ) ).
Read more