Download the PHP package voceconnect/voce-post-meta without Composer
On this page you can find all versions of the php package voceconnect/voce-post-meta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voceconnect/voce-post-meta
More information about voceconnect/voce-post-meta
Files in voceconnect/voce-post-meta
Package voce-post-meta
Short Description Easily create post metaboxes and add fields
License GPLv2+
Informations about the package voce-post-meta
Voce Post Meta
Contributors: prettyboymp, kevinlangleyjr, jeffstieler, markparolisi, banderon
Tags: post, meta
Requires at least: 3.5
Tested up to: 4.2.2
Stable tag: 1.9.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description
Create a group (metabox), then add fields to it.
Installation
As standard plugin:
See Installing Plugins.
As theme or plugin dependency:
After dropping the plugin into the containing theme or plugin, add the following:
Usage
Example
Input Types
By default, Voce Post Meta comes with support for these input types:
Text Inputs
text
- A one line text input field.textarea
- A basic multiline text field.numberic
- The same as text field but sanitizes as a number on save.wp_editor
- Uses the full WordPress post content editor, for more advanced editing scenarios.
Selection
dropdown
- A dropdown select field.radio
- Radio button selection field.checkbox
- Checkbox input field for on/off toggling.
The dropdown
and radio
fields expect an options
argument passed into the options array. The options should be an array of $value => $label
pairs.
This field is optional for the checkbox
field; utilizing it will allow for multiple checkboxes under the same field and will cause the value to save as an array.
Additionally, for radio
fields and checkbox
fields that use the options
argument, an item_container
argument is available to specify the HTML tag used to wrap the individual items. The only currently allowed values are div
(default) and span
.
Misc
hidden
A hidden input field for saving meta outside of user control.
Standard Field Options
These are the optional args that all default fields accept, and that any extended fields are expected to handle.
Changelog
Please refer to the full changelog at https://github.com/voceconnect/voce-post-meta/releases