get_pages returning pages with no content
-
Hi all,
I want to put the latest pages on my home-page, and I tried to do that with get_pages(). It works fine, except that some of the pages have no content. How can I tell get_pages not to return them? I need only 4 pages.
Of course I can retrieve them all, then filter them with $page->post_content, but that seems a waste of resources to me (and therefore of speed).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘get_pages returning pages with no content’ is closed to new replies.