Skip to content

Instantly share code, notes, and snippets.

@abacha
Created January 7, 2014 18:03
Show Gist options
  • Select an option

  • Save abacha/8303700 to your computer and use it in GitHub Desktop.

Select an option

Save abacha/8303700 to your computer and use it in GitHub Desktop.
<?
function print_combo($id) {
$combo = "<select>";
while( has_sub_field('select_'.$id) ) {
$combo .= "<option value='".the_sub_field('link_externo')."'>";
$combo .= the_sub_field('texto');
$combo .= "</option>";
}
$combo .= "</select>";
return $combo;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment