Get Pages with Status

Get Pages with Status

Matt McInvale

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

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

  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.

Reviews

0 out of 5 stars

  • Version: 0.0.1
  • Last updated: 15 years ago
  • Active installations: 0
  • WordPress version: 2.7
  • Tested up to: 2.8.4
  • PHP version: false