How to access the paged variable outside the loop?
-
I know you can use get_query_var(‘paged’) when using query_posts() but im now doing custom mysql queries trough the $wpdb class.
I need to now which page am i on since i have to code a custom pagination since wp_pagenavi stops working once i use custom mysql queries.
I tried $_GET[‘paged’], but it doesnt work either for me.
Any suggestions?
For clarification:
http:domain.com/page/3/ <—- the number is what i need…Cheers
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to access the paged variable outside the loop?’ is closed to new replies.