Pull value from Theme Customizer (1 post)

  1. Dave Meier
    Posted 3 years ago #

    Have added in a dropdown pages setting within the theme customizer.

    $wp_customize->add_setting( 'usp_pagelink', array(
    		        'type' => 'option',
    		        'default'        => 10,
    		    $wp_customize->add_control('usp_pagelink', array(
    	        'label'      => ('Page links to...'),
    	        'section'    => 'usp_settings',
    	        'type'    => 'dropdown-pages',
    	        'settings'   => 'usp_pagelink',

    How do I echo this value on the front end to create a link to the relevant page?

Topic Closed

This topic has been closed to new replies.

About this Topic