title: put default image if there is no image using ACF
body: <p>I am using Wordpress ACF plugin and I have custom products section and I put a custom field for featured image and it's working perfect. </p>
  
  <p>Now I want if there is no featured image inserted then show a default image, I am using the following code but its not working.</p>
  
  <pre><code>&lt;? php
  $category_image = get_field('fimage');
  if ($category_image) {
    $category_image_url = $category_image['sizes']['product-thumb'];
  }
  if ($category_image_url) { ?&gt;
   &lt;img src="&lt;?php echo esc_url( get_template_directory_uri() ); ?&gt;/timthumb.php?src=&lt;?php echo $category_image['url']; ?&gt;&amp;w=300&amp;h=250&amp;zc=0" alt="&lt;?php echo $category_image['name']; ?&gt;" title="&lt;?php echo $category_image['name']; ?&gt;"&gt;
  } else($category_image_url) { ?&gt;
    &lt;img src="http://www.staticwhich.co.uk/static/images/products/no-image/no-image-available.png" alt="&lt;?php echo $category_image['name']; ?&gt;" title="&lt;?php echo $category_image['name']; ?&gt;"&gt;
  &lt;? php } ?&gt;
  </code></pre>