Alex Rivera | Logout

wordpress pagination get current page number from url

Asked 2011-11-26T20:28:33.477
12

I need to extract the value of "page" i.e 5 from this url - http://snypher.local/photos/page/5 What should I do to extract it in Wordpress? I am not able to get it from the $_GET super global.

Edit
Report

1 Answer

17

use get_query_var example $page = get_query_var('paged'); in your case it's 5

answered 2012-11-07T16:15:06.627

Your Answer