Custom Template Pagination (3 posts)

  1. c0nc3pt.SF
    Posted 6 years ago #

    Greetings all,

    I have a custom page template that I'm trying to paginate using a custom loop. When you click the next link it takes you to my 404 page saying the page doesn't exist, but when I print the $query_string it shows paged=2&pagename=games. Any thoughts as to what I am doing wrong?
    <? global $paged; query_posts('post_type=game&orderby=title&order=asc&paged=' . $paged); ?>

  2. esmi
    Forum Moderator
    Posted 6 years ago #


    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('post_type=game&orderby=title&order=asc&paged=' . $paged); ?>
  3. c0nc3pt.SF
    Posted 6 years ago #

    Unfortunately that did not work. Any other ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic