Adding a fallback image to a wordpress advanced custom fields loop
<p>I'm currently using the advanced custom fields plugin on a wordpress site that I'm developing and it is proving very useful.</p>

<p>I bought the repeater addon which had helped me generate a list of staff members. However I imagine that there won't always be an image available for the staff member so I would like to use a fallback image or use an online placeholder image service like <a href="http://placehold.it" rel="nofollow">http://placehold.it</a>?</p>

<p>Here is the code:</p>

<pre><code>                &lt;?php if(get_field('about_the_practioner')): ?&gt;

                &lt;?php while(the_repeater_field('about_the_practioner')): ?&gt;

                &lt;article class="colleague_excerpts"&gt;

                         &lt;figure&gt;
                            &lt;?php if(get_field('image')): ?&gt;
                            &lt;img src="&lt;?php the_field('image' ) ?&gt;" alt="&lt;?php the_sub_field('image_alt_text'); ?&gt;"&gt;
                            &lt;?php else: ?&gt;
                            &lt;img src="http://placehold.it/160x160&amp;text=Awaiting Image"&gt;
                            &lt;?php endif; ?&gt; 

                         &lt;/figure&gt;

                        &lt;div class="description"&gt;
                            &lt;header&gt;
                                &lt;h4&gt;&lt;?php the_sub_field('header')?&gt;&lt;span&gt;&lt;?php the_sub_field('title')?&gt;&lt;/span&gt;&lt;/h4&gt;
                            &lt;/header&gt;
                            &lt;p&gt;&lt;?php the_sub_field('text') ?&gt;&lt;/p&gt;
                            &lt;a href="&lt;?php the_sub_field('page_link')?&gt;" class="button"&gt;&lt;?php the_sub_field('page_link_text') ?&gt;&lt;/a&gt;
                        &lt;/div&gt;
                    &lt;hr&gt;

                &lt;/article&gt;

                &lt;?php endwhile; ?&gt;

                &lt;?php endif; ?&gt;
</code></pre>

<p>I've seen conditional statements used to create fallback images if a featured image is not available. I have tried something similar in this case at the point where the image is called, I'm not good with php however and only the fallback image is brought into the webpage even if the image field is populated. Any help would be appreciated.</p>
