title: simple (possibly) PHP problems
body: <p>I'm trying to achieve a couple of things with PHP, but as a relative novice I'm slightly confused.</p>
  
  <p>I have some custom fields to which I want to:</p>
  
  <ol>
  <li>Add an icon to the side of it if it's true (e.g a little phone next to the number)</li>
  <li>Make sure any hyperlinks don't appear in their custom field form, but rather as anchor text e.g. www.site.com becomes hyperlinked text 'Website'.</li>
  </ol>
  
  <p>So far for 1. I have something like this:</p>
  
  <pre><code>&lt;?php
  $value = get_post_meta( get_the_ID(), 'ecpt_phone', true );
  if( $value == 'True' ) {
      echo '&lt;img src="/wp-content/uploads/2013/02/image.png"&gt;';
      echo get_post_meta( get_the_ID(), 'ecpt_phone', true );
  ?&gt;
  </code></pre>
  
  <p>So far for 2. which combines both problems I have something like this:</p>
  
  <pre><code>&lt;?php $value = get_post_meta( get_the_ID(), 'ecpt_wesbite', true );
      if ($ecpt_phone, true) {
  ?&gt;
  &lt;h4&gt;
    '&lt;img src="/wp-content/uploads/2013/02/image.png"&gt;'
    &lt;a href="'ecpt_website'"&gt;Visit Website&lt;/a&gt;
  &lt;/h4&gt;
  &lt;?php } else { ?&gt;
  
      { echo 'display:none;'; }
  
  &lt;?php } ?&gt;
  </code></pre>