Infinite Scroll in ascending order?
-
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!
- The topic ‘Infinite Scroll in ascending order?’ is closed to new replies.