WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the ACF purely so the user can upload images to a predefined location and have assigned the page rules accordingly. Everything seems to be fine on the WP back-end, with the three images uploaded to the fields. However, on the font end, nothing apart from blank box is appearing at all where the images should be. Looking at the source that WP is outputting, there is only blank code:

<img src="" class="middle" alt="image1"/>

This is the loop I am using:

<?php query_posts("posts_per_page=1&post_type=page&page_id=168"); if (have_posts()) :  
while ( have_posts() ) :   
the_post(); ?>
<!--If you want to refer to the child of parent page, use "post_parent=" -->
<h3><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
<img src="<?php the_field('image_1'); ?>" class="middle" alt="image1"/>
<a href="<?php the_permalink(); ?>" class="button">View More</a>
 <?php endwhile; ?>
      <!-- post navigation -->
    <?php else: ?>
      <!-- no posts found -->
    <?php endif; ?>
    <?php wp_reset_query(); ?>
share|improve this question
what is the_field('image_1'); ? is that a custom function you wrote , or is it on your theme ? it is not, as far as i know, a wp standard function ... – krembo99 Dec 5 '11 at 20:36
Have a look at the plugin details. It is standard for that. – tobeeornot Dec 6 '11 at 11:22

I just needed to nominate the home page id the function:

<img src="<?php the_field('image_2', '245'); ?>" class="middle" alt="image2"/>
share|improve this answer
Please accept your answer. – Charles Clarkson Aug 14 '13 at 20:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.