Select with Pages

SELECT WITH “PAGES”

We are getting wordpress default pages via get_pages( $args ) function. And you can use wordpress core query args here.

see for more query_args

Select with default wordpress pages see for more query_args

array(
  'id'      => 'unique_option_506',
  'type'    => 'select',
  'title'   => 'Select Field for Pages',
  'options' => 'pages',
),
array(
  'id'            => 'unique_option_507',
  'type'          => 'select',
  'title'         => 'Select Field for Pages',
  'options'       => 'pages',
  // query_args is option for all
  'query_args'    => array(
    'sort_order'  => 'ASC',
    'sort_column' => 'post_title',
  ),
),

Last updated