get_pages() will return all pages.
I want to get all pages that have a custom field key called 'basePrice', regardless of the value.
But when I try to use
get_pages(array( 'meta_key' => 'basePrice' ))
The array is always empty, and no pages are returned.
I know I can create a custom WP query, but I Don't want to, I want to keep this simple, but I also want to be able to output a hierarchical list of children pages nested under the parents when I use a
If I use
get_posts, the meta_key works, but all pages (including children) are sorted into an alphabetical list, not relating to their parents.