From 41e4e0a2c57b1bcff0e21a3b218fd3767f22aa54 Mon Sep 17 00:00:00 2001 From: David Valdez Date: Thu, 21 Feb 2013 01:04:50 -0600 Subject: [PATCH] now in the term field appear also the new terms 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 #146 --- field_types/term_field/term_field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/field_types/term_field/term_field.php b/field_types/term_field/term_field.php index b88adf3..a7ad51e 100644 --- a/field_types/term_field/term_field.php +++ b/field_types/term_field/term_field.php @@ -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 = '
'; $value = $field['input_value'];