The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress query_post loop pagination problems.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #41536
    Andy Howells

    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.

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.