Generate a month select box

this function generates a dropdown select box showing all month.

/**
 * Snippet Name: Generate a month select box
 * Snippet URL: https://www.wpcustoms.net/snippets/generate-month-select-box/
 */
  function month_select_box( $field_name = 'month' ) {
    $month_options = '';
    for( $i = 1; $i ' . $month_name . '';
    }
    return '';
} 

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x