Skip to content

Instantly share code, notes, and snippets.

@armandmorin
Created October 3, 2011 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armandmorin/1258146 to your computer and use it in GitHub Desktop.
Save armandmorin/1258146 to your computer and use it in GitHub Desktop.
WPAlchemy sample select box
<?php $mb->the_field('font_weight'); ?>
<select name="<?php $mb->the_name(); ?>">
<option value="normal"<?php $mb->the_select_state('normal'); ?>>Normal</option>
<option value="italic"<?php $mb->the_select_state('italic'); ?>>Italic</option>
<option value="bold"<?php $mb->the_select_state('bold'); ?>>Bold</option>
<option value="bolditalic"<?php $mb->the_select_state('bolditalic'); ?>>Bold Italic</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment