I’m working on a small-ish site that will be all Pages, no Posts (because I need to preserve a structure of simple URLs, e.g. domain.com/software).
I thought it would be a simple matter to tweak the loop to list 20 pages at a time, but it’s not turning out that way. I’ve tried two methods:
1) Use query_posts before the loop to retrieve pages rather than posts. But I can’t see any argument options in the codex that will achieve a simple list of pages.
2) Use list_pages() in the index rather than the loop. This sort of works, but I need to to display the Page body on the index. I can get the linked Page titles, but can’t see any argument to list_pages() that will let me also display the Page body under each link.
Basically I just want a loop of Pages that works otherwise like a normal loop. Is there any way to accomplish this? Thanks.
- The topic ‘Loop of Pages’ is closed to new replies.