Get Pages with Status

By Matt McInvale

0+ active installationsVersion 0.0.1

Modify version of get_pages() function to allow the inclusion of pages with any status.

Description

Get Pages with Status is a very simple plugin that allows you to get pages with any status.

This plugin gives you one new function, get_pages_with_status($arguments).

This function adds 1 new option to the default get_pages() function.

  1. Define the status argument to select pages of any status type.
  2. Define status as ‘all’ to get all pages regardless of status.

That’s it really, super simple.

More documentation for Get Pages with Status on BinaryM.com

Installation

  1. Upload get_pages_with_status.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Replace get_pages() with get_pages_with_status() in your templates to use the status argument.
  4. See our site for another example.

FAQ

None at this point. Contact me if you have any and I’ll add them here.