I’m an amateur enthusiast rather than a proper coder, but I’ve been successfully (if slowly :-))working my way through a number of customizations of Twenty Eleven using a child theme on an offline testing server, and I’ve now got the home page working pretty much as I’d like.
My posts will be “pseudo-chronological”, so I want to give the visitor the option to switch the sort order of post excerpts on the home page with a button.
I know how to change the sort order permanently, using…
<?php global $query_string; query_posts($query_string . “&order=ASC”); ?>
… at the start of the loop,
and, from my research so far, it seems that creating two pages of posts, one with each sort order, with links to each other, might be the way to go.
Is this the best way, do you think?
Is it even possible?
Any advice much appreciated.
- The topic ‘Create home page button to change sort order? (Child of Twenty Eleven)’ is closed to new replies.