WordPressで、カスタムフィールドに値がない場合などは、その項目を表示しないようにする方法になります。
こちらでは、表示されてしまいます。
<table>
	<tr>
		<th>その他</th>
		<td><?php the_field('atc'); ?></td>
	</tr>
</table>テキストに値がない場合は表示されないようにする。
表示されるコード
<table>
	<tr><th>その他</th><td><?php the_field('atc'); ?></td></tr>
</table>以下のように変更するだけ
<table>
  <?php if(post_custom('atc')): ?>
     <tr><th>その他</th><td><?php echo post_custom('atc'); ?></td></tr>
  <?php endif; ?>
</table>
 
  
  
  
  
