I want to be able to switch back and forth by clicking an anchor tag preferably, between showing a subset of posts and showing all posts, the code I am using is:
query_posts($query_string . '&posts_per_page=-1');
query_posts( array( 'posts_per_page' => 45, //'paged' => ( get_query_var('page') ? get_query_var('page') : 1 ), ));
(paged isn't working)
Any way to do this? The problem is I need the 45 limit to show by default, and then a show all anchor tag or button that the user can click.
Any help would be much appreciated!