• Resolved cogmios

    (@cogmios)


    whatever i try the

    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;

    always returns a blank string thus 1.

    See the sidebar on https://edward.de.leau.net, i put an

    echo 'x' . $page;

    and it always is 1

    im trying to add the correct pagination for my side-feed

Viewing 1 replies (of 1 total)
  • Thread Starter cogmios

    (@cogmios)

    sorry i got it

    $wp_query->set('cat', '1172,14');
    $wp_query->set('posts_per_page', 10);
    $wp_query->set('offset', $paged*10);
Viewing 1 replies (of 1 total)
  • The topic ‘get_query_var(‘paged’) returns nothing’ is closed to new replies.