ID, 'car_year', true ); $car_mileage = get_post_meta( $post->ID, 'car_mileage', true ); $car_cruise_control = get_post_meta( $post->ID, 'car_cruise_control', true ); $car_power_windows = get_post_meta( $post->ID, 'car_power_windows', true ); $car_sunroof = get_post_meta( $post->ID, 'car_sunroof', true ); // Set default values. if( empty( $car_year ) ) $car_year = ''; if( empty( $car_mileage ) ) $car_mileage = ''; if( empty( $car_cruise_control ) ) $car_cruise_control = ''; if( empty( $car_power_windows ) ) $car_power_windows = ''; if( empty( $car_sunroof ) ) $car_sunroof = ''; // Form fields. echo '
'; echo ' | '; echo ' '; echo ' | '; echo '
---|---|
'; echo ' | '; echo ' '; echo ' | '; echo '
'; echo ' | '; echo ' ' . __( '', 'text_domain' ); echo ' ' . __( 'Car has cruise control.', 'text_domain' ) . ''; echo ' | '; echo '
'; echo ' | '; echo ' ' . __( '', 'text_domain' ); echo ' ' . __( 'Car has power windows.', 'text_domain' ) . ''; echo ' | '; echo '
'; echo ' | '; echo ' ' . __( '', 'text_domain' ); echo ' ' . __( 'Car has sunroof.', 'text_domain' ) . ''; echo ' | '; echo '