thisisedie
Member
Posted 1 year ago #
I have a page set up for my writing which you can view here:
http://www.thisisedie.com/fiction/
I'm using pages to do this and so I made a page called "Fiction" and then made pages called "New Stuff", "Old Stuff", and "Ruben's Hollow" which are children of Fiction. I then made pages for the writings and made them children of the 3 topics. I'm using query_posts to list the children of each of the three topics under the proper heading and it works perfectly fine but I'm wondering if I'm using query_posts correctly in this case or if I'm gonna run into trouble later? Code for the fiction page is here:
http://pastebin.com/6pUrLzmL
Hope I explained that well enough. Thanks for your time :o)
Not sure where you got static=true in query_posts. There's no such parameter.
http://codex.wordpress.org/Function_Reference/query_posts
Personally, since you're only listing the post titles, I'd use get_posts. It's designed for creating multiple loops. You can use exactly the same parameters (with the exception of static=true).
http://codex.wordpress.org/Function_Reference/get_posts
thisisedie
Member
Posted 1 year ago #
Thanks for responding Esmi.
Well -- I was using static=true because post_type=page would return a blank. I, however, was making things far too complicated for myself and list_pages works great with a lot less code.