Calling and displaying a WooCommerce custom checkout field value
<p>I'm trying to display a custom field on an email. </p>

<p>Here's the script that I thought should work:</p>

<pre><code>&lt;?php if ($day) : ?&gt;
&lt;p&gt;&lt;strong&gt;&lt;?php _e('day:', 'woocommerce-pip'); ?&gt;&lt;/strong&gt; &lt;?php echo $order-&gt;day; ?&gt;&lt;/p&gt;
&lt;?php endif; ?&gt;
</code></pre>

<p>But it doesn't work. The name of the field is <strong><code>'day'</code></strong>. </p>

<p>Should this work? What am I missing?</p>

<p>Thanks.</p>