Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pharmacycenter

    (@pharmacycenter)

    It Helped me:

    Just a small fix for your method…

    Running the new query reset’s the page count of the index, so the WP paging mechanism is messed up.

    An easy fix is to add:

    query_posts(’orderby=date’);

    after running ‘The Sticky Loop’. This will reset the post variables, and paging will work again =)

    Thread Starter pharmacycenter

    (@pharmacycenter)

    This is my first custom Query:

    <?php $my_query = new WP_Query(‘category_name=news-of-the-week&showposts=1’); ?>
    <?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?>

    Second Query (here i should have nav links)
    <!– Start the Loop. –>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)