page

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: , , ,

Advertisements

3 Responses to “page”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: