reset query_posts
-
hi is there any way to get this loop reset??
i m trying to run this loop– get_post_meta($post->ID, ‘side’, true);
then<?php $myposts = query_posts("cat=10"); foreach($myposts as $post) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>
-then get_post_meta($post->ID, ‘slideshow’, true);
-then another<?php $myposts = query_posts("cat=10"); foreach($myposts as $post) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>
but it seems not working when the get_post_meta() run after the
foreach loop
is there anyway to reset or ……
tq
- The topic ‘reset query_posts’ is closed to new replies.