Skip to content

Commit

Permalink
now in the term field appear also the new terms
Browse files Browse the repository at this point in the history
by default get_terms only return the terms who have at least one
post created, adding a argument for return also the new terms

this fixes magic-fields-team#146
  • Loading branch information
gnuget committed Feb 21, 2013
1 parent 073e8a7 commit 41e4e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field_types/term_field/term_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function display_field( $field, $group_index = 1, $field_index = 1 ) {
}

$option_from_term_array = $field['options']['term'];
$options = get_terms($select[$option_from_term_array]);
$options = get_terms($select[$option_from_term_array], array('hide_empty' => false));
$output = '<div class="mf-dropdown-box">';
$value = $field['input_value'];

Expand Down

0 comments on commit 41e4e0a

Please sign in to comment.