Fieldmanager is a comprehensive toolkit for building forms, meta boxes, and custom admin screens for WordPress.
Text fields that responds to user input with autocomplete suggestions (optionally via an ajax request).
Single boolean checkbox.
A set of multiple checkboxes which stores as an array of the checked values.
Color picker interface.
Text fields that uses the jQuery UI Datepicker to allow the user to select a date from a calendar. Optionally adds fields for time.
Data grids (spreadsheets).
Hidden input fields.
Text fields that sanitize values as URLs.
Allow users to select an attachment via the Media popup.
Password text fields (hides user input).
A set of radio buttons. Often accompanied by a datasource to populate the radio buttons.
Produces a visual editor (TinyMCE) field.
Textarea (multi-line text) fields.
Basic single-line text fields.
With Fieldmanager, you can add fields to different contexts. For example, you might want to add a new option in the user profiles, which you can do through the User Context.
- Post Context
Adds a meta box to the new/edit post screen (for any post type), and saves data to post meta.
- Term Context
Adds fields to the new and/or edit term screen, and saves data to term meta.
- Submenu Context
Adds a new screen to the WordPress admin, and saves data to options.
- User Context
Adds fields to the edit user (profile) screen, and saves data to user meta.
- Quickedit Context
Adds fields to the Quickedit box in the post list screen, and saves data to post meta.
Fieldmanager lets you group one or more fields together to help with organizing content. You can have single-level groups, tabbed groups, and multi-level groups.
Repeating and Sorting Fields
Fields or Groups of fields can repeat and be sorted.
limitkey is used to determine how many times a field can repeat. Use
0if you want to allow unlimited fields
sortablekey is used to make a field sortable. This might be useful in a case where you are building a slider or other content that needs to be moved around.
$fm = new Fieldmanager_Group( array( 'name' => 'repeatable_meta_fields', 'limit' => 0, 'add_more_label' => 'Add another set of fields', 'sortable' => true, 'collapsible' => true, 'label' => 'Fields', 'children' => array( 'text' => new Fieldmanager_Textfield( 'Text Field' ), 'media' => new Fieldmanager_Media( 'Media File' ), ) ) ); $fm->add_meta_box( 'Field Group', 'demo-group' );
Repeatale, Sortable, and User-generated
You might want to have the option to create pages with different types of fields in different arrangements. The same post type might be configured for multiple images, a text field, and a button – or no images, a text field, and a form.
To accomplish these kinds of layout options, take a look at our Custom Blocks demo plugin:
Seen in action:
To see more demos, check out the
Fieldmanager Demos plugin from Alley Interactive:
Once you install and activate the plugin, you will see new post types that demonstrate different field types.