Skip to content

Instantly share code, notes, and snippets.

@designbuildtest
Last active August 29, 2015 14:02
Show Gist options
  • Save designbuildtest/e6dfb85a7c0ee897ebce to your computer and use it in GitHub Desktop.
Save designbuildtest/e6dfb85a7c0ee897ebce to your computer and use it in GitHub Desktop.
Customizer dropdown pages
<?php
$wp_customize->add_setting( 'select_page', array(
'default' => '',
) );
$wp_customize->add_control( 'map_page_control', array(
'label' => __( 'Select page', 'twentyfourteen' ),
'section' => 'theme_options',
'settings' => 'select_page',
'priority' => 1,
'type' => 'dropdown-pages',
) );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment