Select with Categories

Select with categories

Select with default wordpress categories learn more query_args

array(
  'id'             => 'unique_option_509',
  'type'           => 'select',
  'title'          => 'Select Field for Posts',
  'options'        => 'categories',
  'query_args'     => array(
    'orderby'      => 'name',
    'order'        => 'ASC',
  ),
  'default_option' => 'Select a category',
),

Last updated