Stop truncation of shortcodes in custom text fields?

@Milo and @Howdy_McGee had the answer. I found the section I needed to modify in my functions.php file: case ‘text’: echo ‘<input type=”text” name=”‘, $field[‘id’], ‘” id=”‘, $field[‘id’], ‘” value=”‘, $meta ? $meta : $field[‘std’], ‘” size=”30″ style=”width:97%” />’, It was the value field that was getting truncated, so I passed it through esc_attr() as … Read more

If metabox fields has content display content

In your php file, replace: <tr > <td>Brennwert</td > <td >’. $Product_Brennwert . ‘</td> </tr > with: ‘; $Product_Brennwert = get_post_meta(get_the_ID(), “Product_Brennwert”, true); if(!empty($Product_Brennwert)){ $grid_details .= ” <tr> <td>Brennwert</td > <td>”.$Product_Brennwert.”</td> </tr> “; } $grid_details .= ‘