• Hi, i have little problem. I made 2 loops in the index.php that i can give a specific category an other styling then the other posts.

    This is the code for my “special” category:

    <?php $my_query = new WP_Query('category_name=short-news');
    while ($my_query->have_posts()) : $my_query->the_post();
    $do_not_duplicate = $post->ID;?>
    <!-- my stuff -->
    <?php endwhile; ?>

    This is the second Loop for all other posts:

    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; ?>
    <!-- my stuff -->
    <?php endwhile; ?>

    The problem is, that the first loop is always on top (like sticky). But i want that all posts are normal ordered by date.

    Sorry for my bad english. Cheers Chris

  • The topic ‘One category is always sticky’ is closed to new replies.