loop inside the loop?
-
hi there guys
i can’t get my custom field image to display in my template. i need to have a loop inside a loop i think – but i’ll be buggered if i know where?? can anyone guide me as to how i should have this template structured? thx.
my code:
<?php get_header(); ?>
<div id=”content” class=”clearfix”>
<div id=”feature_wrapper”>
<div id=”feature_sub”><?php include (ABSPATH . ‘/wp-content/plugins/wp-featured-content-slider/content-slider.php’); ?></div><!– feature_sub –>
</div><!– feature_wrapper –>
<div id=”left_column”>
<?php the_content(); ?>
</div><!– left_column –>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><div id=”right_column”>
<?php echo get_post_meta($post->ID, ‘right_image’, true); ?>
</div><!– right_column –>
<?php endwhile; else: ?>
<?php endif; ?>
</div><!– content –>
<?php get_footer(); ?>
- The topic ‘loop inside the loop?’ is closed to new replies.