Support » Fixing WordPress » Meta Content Disappearing with Nested Loops

Viewing 1 replies (of 1 total)
  • I think your secondary loops are stepping on the_post(). Try saving the main post ID and using it in the calls to get_post_custom_values, like this:

    <div class="left">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
       <?php $main_id = the_ID(); ?>
    <!-- pull in additional Home page meta data in sidebar -->
    	<div id="testimonial">
    	$mykey_values = get_post_custom_values('quote',$main_id);
Viewing 1 replies (of 1 total)
  • The topic ‘Meta Content Disappearing with Nested Loops’ is closed to new replies.