Get Pages with Status
Matt McInvaleGet 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.
- Define the
status
argument to select pages of any status type. - Define status as ‘all’ to get all pages regardless of status.
That’s it really, super simple.
None at this point. Contact me if you have any and I’ll add them here.
- Upload
get_pages_with_status.php
to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Replace
get_pages()
withget_pages_with_status()
in your templates to use thestatus
argument. - 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