• From here http://wordpress.org/support/topic/177123?replies=7

    is it possible to add a variable into query_posts?

    The idea is to change the query posts according to which page you’re on.

    The overall idea is to have five (say) posts at the head of the page, then ten permalinks below it using two separate loops and offsetting the permalinks by five.

    Here’s the start of the second loop.

    <?php query_posts('offset=5&showposts=10'); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    The problem arises when you go to the next page (assuming the next page tag is shown after the first loop)

    The five posts will be different, but the ten permalinks will be be the same.

    Any ideas?

  • The topic ‘Adding dynamic variable into query_posts’ is closed to new replies.