• Hello guys, I can’t figure this out. For some reason my thumbnail images are duplicating on other pages instead of just the specific page I assigned them too! If you go to the home page here: http://toendistobegin.com/wordpress/ and scroll down, you’ll see three thumbnail images that go to their assigned pages. When you click on each of those three thumbnails and scroll down, you’ll notice the same images at the very bottom. Much help would be appreciated : )

    here’s also the code that queries that in my template:

    <?php query_posts("posts_per_page=-1&post_type=page&order=asc&post_parent=55"); if ( have_posts() ) while ( have_posts() ) : the_post(); ?>	
    
    						<figure><a href="<?php the_permalink(); ?>"><img src="<?php echo get_post_meta($post->ID, "detail_thumbnail", true); ?>" alt="" /></a></figure>	
    
    					<?php endwhile; wp_reset_query(); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter davidzupec

    (@davidzupec)

    Sorry everyone, I wasn’t sure how to word it but this is describes exactly what I’m trying to do: Query Child Pages of a Current Page and Loop Through Each Child Page.

    It looks like the issue stems from putting the post_parent ID in the code which is causing the problem. Any suggestions on how to code that?

Viewing 1 replies (of 1 total)
  • The topic ‘My custom field images duplicating on other pages’ is closed to new replies.