WordPress.org

Ready to get started?Download WordPress

Forums

Infinite Scroll in ascending order? (1 post)

  1. tfagency
    Member
    Posted 2 years ago #

    Am using Infinite Scroll as a way to show Tumblr archive-style layout for 100s of blog post excerpts. The Infinite Scroll plugin is performing fine on both my index.php and custom archive page. But when I code the tags to load in Ascending order, it doesn't work.

    The php loop I'm using is:

    - - - - - - - - -

    <?php
    $args= array(
    'posts_per_page' => 72,
    'paged' => get_query_var('paged'),
    'post__not_in' => get_option('sticky_posts')
    );
    query_posts( $args . '&order=ASC' ); while ( have_posts() ) : the_post(); ?>

    <div class="archive-post">
    " target="_blank">
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    </div>

    <?php endwhile;
    wp_reset_query(); ?>

    - - - - - - - - -

    Is there a way to revise this to have infinite scrolling with posts in ASC order?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic