BUTTON TO POSTS IN CHRONOLOGICAL ORDER
-
I would like to have a button on my home page to switch my posts to cronological order. I was able to change
<?php if (have_posts()) : ?>
to
<?php query_posts($query_string . '&order=ASC'); if (have_posts()) : ?>
and it works fine. But how to actually make a button that on click reverses the loop order? I would like to be able to switch back and forth from
order=ASC
toorder=DESC
.thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘BUTTON TO POSTS IN CHRONOLOGICAL ORDER’ is closed to new replies.