settings['return_format'] ) ? $this->settings['return_format'] : ''; $taxonomy_field_type = isset( $this->settings['field_type'] ) ? $this->settings['field_type'] : ''; if ( $return_format == 'object' ) { // If field type is a single type if($taxonomy_field_type == 'select' || $taxonomy_field_type == 'radio') { echo $this->indent . htmlspecialchars("name."_term = " . $this->get_field_method . "( '" . $this->name . "' ); ?>")."\n"; echo $this->indent . htmlspecialchars("name."_term ): ?>")."\n"; echo $this->indent . htmlspecialchars(" name."_term->name; ?>")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } // If field type is a multiple type if($taxonomy_field_type == 'multi_select' || $taxonomy_field_type == 'checkbox') { echo $this->indent . htmlspecialchars("name."_terms = " . $this->get_field_method . "( '" . $this->name . "' ); ?>" )."\n"; echo $this->indent . htmlspecialchars("name."_terms ): ?>")."\n"; echo $this->indent . htmlspecialchars(" name."_terms as \$".$this->name."_term ): ?>")."\n"; echo $this->indent . htmlspecialchars(" name."_term->name; ?>")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } } // if return format is an array of ids if ( $return_format == 'id' ) { echo $this->indent . htmlspecialchars("name."_ids = " . $this->get_field_method . "( '" . $this->name . "' ); ?>")."\n"; echo $this->indent . htmlspecialchars("name."_ids ); ?>")."\n"; }