Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    
    <select name="gender" id="gender<?php $template->the_instance(); ?>">
        <option value="male" <?php selected( $template->the_posted_value( 'gender' ), 'male' ); ?>>Male</option>
        <option value="female" <?php selected( $template->the_posted_value( 'gender' ), 'female' ); ?>>Female</option>
    </select>
    
Viewing 1 replies (of 1 total)

The topic ‘Register Custom Field – Select (Dropdown)’ is closed to new replies.