Skip to content

Post Radio Field

Mark Wilkinson edited this page May 17, 2016 · 1 revision

The Post Radio field will provide a list of radio inputs to post objects matching the post query provided. By default this will output checkboxes for all posts.

Args

Required Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'post_radio' (string) (required)

Field Specific Args

  • query (array) WP_Query args.

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'post_radio_field', 
	'name' => 'Example Post Radio Field', 
	'type' => 'post_radio', 
),
Clone this wiki locally