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()) : ?>
<?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
- The topic ‘BUTTON TO POSTS IN CHRONOLOGICAL ORDER’ is closed to new replies.