This global variable stores the requested page number of a multipage post that has to be shown. It is set in the function setup_postdata($post) defined in [wordpress root folder]/wp-includes/functions.php. The variable page in the WordPress request (query string) is used to set this global variable. The multipage content of the post is stored in the global variable pages.

page does not indicate the page number of a paginated archive, it is used only for a multipage post.

Plugin and theme developers can use this variable to identify the requested page number of the current post being displayed.

Back to full list of global variables.

Technorati tags: , , ,

Discussion [Participate or Link]

  1. Abhijit Nadgouda @ iface » Blog Archive » Wordpress Global Variables said:

    […] page […]

  2. Abhijit Nadgouda @ iface » Blog Archive » pages said:

    […] page […]

  3. szarkoz said:

    You might want to read http://yafll.com/articles/computers_and_internet/966.html

  4. Abhijit Nadgouda’s List of WordPress Global Variables « Lorelle on WordPress said:

    […] and Page Variables: wp_query, posts, more, posts_per_page, max_num_pages, numpages, page, pages, multipage, paged, post, id, authordata, post_cache, category_cache, and […]

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.



Abhijit Nadgouda
iface Consulting
+91 9819820312
My bookmarks


This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.