ifacethoughts

multipage

The multipage global variable represents whether the current WordPress post or page to be displayed is multi-paged or not. It is set in the function setup_postdata($post) defined in [wordpress root folder]/wp-includes/functions.php. A post is broken in multiple pages wherever <!--nextpage--> is inserted inside the post. pages global variable is used to hold the content of multiple pages of the post.

Theme developers can use the function wp_link_pages($args=”), in [wordpress root folder]/wp-includes/template-functions/post.php, in the WordPress loop to display links to the next and previous pages of the post.

Back to full list of global variables.

Technorati tags: , ,

Discussion [Participate or Link]

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

    […] $multipage […]

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

    […] multipage […]

  3. Abhijit Nadgouda @ iface » Blog Archive » numpages said:

    […] WordPress uses numpages global variable to store the number of pages in a multipage post. It is set in the function setup_postdata($post) defined in [wordpress root folder]/wp-includes/functions.php. The split pages are stored in the global variable pages. […]

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

    […] Post 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 post_meta_cache […]

  5. references» Blog Archive » Wordpress Global Variables said:

    […] $multipage […]

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.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
My bookmarks

badgesand...

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.