settings['multiple'] ) ? $this->settings['multiple'] : ''; // Return format // NOTE: Not supported by ACF v4 $return_format = isset( $this->settings['return_format'] ) ? $this->settings['return_format'] : ''; // If not object (so ID or Null) and single if( $return_format != 'object' && $multiple_values == '0' ) { echo $this->indent . htmlspecialchars("name. ' = ' . $this->get_field_method . "( '" . $this->name ."' ); ?>")."\n"; echo $this->indent . htmlspecialchars("name." ); ?>")."\n"; } // If not object (so ID or Null) and multiple if( $return_format != 'object' && $multiple_values == '1' ) { echo $this->indent . htmlspecialchars("name.' = ' . $this->get_field_method . "( '" . $this->name ."' ); ?>")."\n"; echo $this->indent . htmlspecialchars("name." ); ?>")."\n"; } // If object and single if( $return_format == 'object' && $multiple_values == '0' ) { echo $this->indent . htmlspecialchars("get_field_method . "( '" . $this->name . "' ); ?>")."\n"; echo $this->indent . htmlspecialchars("")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" \">")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; } // If object and multiple if( $return_format == 'object' && $multiple_values == '1' ) { echo $this->indent . htmlspecialchars("get_field_method . "( '" . $this->name . "' ); ?>")."\n"; echo $this->indent . htmlspecialchars("")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" \">")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars(" ")."\n"; echo $this->indent . htmlspecialchars("")."\n"; }