• i have custom loop with pagination,and pagination work after loop, but how i can add pagination in header before loop start, can i add action and how? when loop finish to add prev link, next link in header

Viewing 1 replies (of 1 total)
  • Hi,

    You have to do at least these before the pagination call.

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $new_query = new WP_Query();
    $new_query->query

    You may display the loop element later on.

Viewing 1 replies (of 1 total)
  • The topic ‘pagination before loop’ is closed to new replies.