I am using the SPUN theme and loving it.
I have modified the look and created a new category.php to display posts in my categories.
On the startpage (index.php) and on the categories (category.php) I would like to order my posts by the date BUT in ascending order.
I have googled this problem and found many results and solutions. Mostly mentioned is it to add a line before the loop, exactly before
<?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?>
The line that user should add is this:
<?php query_posts($query_string . '&orderby=date&order=ASC'); ?>
Fine. The problem is: Nothing changes – the posts are still in descending order!
I assume that this might be a problem with the SPUN theme, that’s why I am writing here.
I really really hope that you can help me because displaying posts in the ascending order is absolute essential to my wordpress project and I wouldn’t like to use another theme than SPUN just because this change of order won’t work.
Thanks SO much in advance!
- The topic ‘Posts in ascending order’ is closed to new replies.