Support » Fixing WordPress » wp_dropdown_pages value

  • Hello ,
    I am not able to figure out the wp_dropdown_pages.
    This shows the list in my plugin settings page. After i click on save changes it shows the default value & wont save it.

    	$args = array(
    		'name' => 'registered_setting',
    		'selected' => get_option('registered_setting')

Viewing 1 replies (of 1 total)
  • Have you tested what get_option() actually returns? Maybe spitting it out to your error_log() would be helpful: error_log( print_r( $optoin_value, 1 ) );

    How are you saving these in your plugin?

Viewing 1 replies (of 1 total)
  • The topic ‘wp_dropdown_pages value’ is closed to new replies.