title: WordPress - Using Conditionals with Custom Fields
body: <p>My code below is not outputting the values. I think it has something to do with how I've concatenated the echo strings. If I strip away the HTML tags it will output, but I need to add styling. </p>
  
  <p>Is there a better way to achieve this?    </p>
  
  <pre><code>&lt;?php
      $location = get_post_meta( get_the_ID(), 'location', true );
      $date = get_post_meta( get_the_ID(), 'date', true );
      $season = get_post_meta( get_the_ID(), 'season', true );
      if( !empty( $location ) &amp;&amp; !empty($date) &amp;&amp; !empty($season) ) {
          echo '&lt;div class="post-extras"&gt;';
          echo '&lt;p&gt;' . 'Wedding Location: ' . $location . '&lt;/p&gt;';
          echo '&lt;p&gt;' . 'Shoot Date: ' . $date . '&lt;/p&gt;';
          echo '&lt;p&gt;' . 'Season: ' . $season . '&lt;/p&gt;';
          echo '&lt;/div&gt;';
      }
  ?&gt;
  </code></pre>