[wp-hackers] Getting every page ID, URL, and Title on site

Rafael Ehlers rafaehlers at gmail.com
Thu Apr 7 18:32:57 UTC 2011

Read this article, see if it helps:


On Thu, Apr 7, 2011 at 3:25 PM, Robert Lusby <nanogwp at gmail.com> wrote:

> Any ideas on the cleanest way to list every page (inc pages, posts, and
> custom post types) in a site?
> I only require ID, Title and Permalink(URL) for each page.
> Seems so simple, but running a loop seems so excessive as I don't require
> the page content at all ... and get_pages only works on pages (not custom
> post types) (plus also returns content).
> Any suggestions for the least intensive way to simply get these three
> items?
> Thanks,
> Rob
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list