2

<ul> <?php $recent_posts = wp_get_recent_posts(array('post_type'=>'news')); foreach( $recent_posts as $recent ) { echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </...


1

This is purely an HTML issue. The problem is that you've tried to indicate the selected item by setting a value="" attribute on the <select> element. That's not how <select> works. To mark an option as selected by default the <option> tag needs to be given the selected attribute. For example, you are outputting this: <select id=...


Only top voted, non community-wiki answers of a minimum length are eligible