WordPress.org

Ready to get started?Download WordPress

Forums

reset query_posts (1 post)

  1. gulflee
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic