Hey all,
I’m running into difficulties trying to get query_posts to paginate.
Basically I’m attempting to output only posts that match a tag (on the homepage, tag of “front-page”) or category for the other pages.
Here is what I have so far;
if ( get_query_var(‘paged’) ) { $paged = get_query_var(‘paged’); }
elseif ( get_query_var(‘page’) ) { $paged = get_query_var(‘page’); }
else { $paged = 1; }
query_posts( array ( ‘tag’ => ‘front-page’, ‘posts_per_page’ => 5, ‘paged’ => $paged ) ); ?>
” title=”” rel=”bookmark”>
” title=”” class=”button blue”>Read More…
Nothing Here, Son!
Any ideas on how I can paginate the above? I’ve tried all sorts of variations but are working properly.