wp_dropdown_pages() while using for any post type other then
page returns empty string. Codex says post type can be passed as key also the function uses
get_pages() which takes the
post_type key. So, I don't see why it isn't working for me.
$args = array( 'echo' => 1, 'name' => 'my_posts', 'post_type' => 'post', 'show_option_none' => 'any' ); $select = wp_dropdown_pages($args);