Get Pages with Status
Get Pages with 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.
- Define the
statusargument to select pages of any status type. - Define status as ‘all’ to get all pages regardless of status.
That’s it really, super simple.
Installation
- Upload
get_pages_with_status.phpto 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 thestatusargument. - See our site for another example.
Faq
None at this point. Contact me if you have any and I’ll add them here.