tags:

views:

20

answers:

1

I have seen this function call get_query_var('paged') work in other places

my page is /news/page/2

But get_query_var('paged') is allways returning 0.

What gives?

Thanks!

A: 

My problem was I called query_posts('posts_per_page=5'); that reset the query value of paged.

If I called get_query_var('paged') before query_posts('posts_per_page=5'); it works.

Drew LeSueur