Options Check

Use of_get_option($id,$default) to return option values.

Basic Options

type: text (mini)
of_get_option('example_text_mini'): Default
type: text
of_get_option('example_text'): Default Value
type: textarea
of_get_option('example_textarea'): Default Text
type: select (mini)
of_get_option('example_select'): three
type: select2 (wide)
of_get_option('example_select_wide'): two
type: select
of_get_option('example_select_categories'): category id = 1
type: select
of_get_option('example_select_tags'): term id = no entry
type: select
of_get_option('example_select_pages'): page id =
type: radio
of_get_option('example_radio'): one
type: checkbox
of_get_option('example_checkbox'): 1

Advanced Options

type: uploader
of_get_option('example_uploader'):
type: image
of_get_option('images'): 2c-l-fixed
type: multicheck
of_get_option('multicheck'): Array ( [one] => 1 [two] => [three] => [four] => [five] => 1 )

The array sent in the options panel was defined as:
Array ( [one] => French Toast [two] => Pancake [three] => Omelette [four] => Crepe [five] => Waffle )

You can get the value of all items in the checkbox array:

  • one (French Toast) = 1
  • two (Pancake) =
  • three (Omelette) =
  • four (Crepe) =
  • five (Waffle) = 1

You can also get an individual checkbox value if you know what you are looking for. In this example, I'll check for the key "one", which is an item I sent in the array for checkboxes:

The value of the multicheck box "one" of example_multicheck is: 1

type: background
of_get_option('background'):
  • color = #bababa
  • image = http://wordpress.twiginteractive.com/wp-content/uploads/2014/07/default_header.jpg
  • repeat = repeat
  • position = top center
  • attachment = scroll
type: colorpicker
of_get_option('colorpicker'): #750056
type: typography
of_get_option('typography'):
  • size = 15px
  • face = georgia
  • style = bold
  • color = #bada55
Some sample text in your style

Editor

type: editor
of_get_option('example_editor'):