When you say "page", do you actually mean "post"? That can make a huge difference.
If you actually mean "post", it's very simple, you just assign each post to a category and loop through that category.
But, since you specifically mentioned "pages", let's see what we can do with that... Off the top of my head, there's no way to list pages by the template that they are using.
Another question, what are you actually trying to accomplish here? Are you simply listing the pages, like this:
Page One Page Two Page Three
Or are you trying to display their content as well?
Definitely 'pages' not 'posts'. I need to display the content, not just their title.
The thought process behind displaying them based on their templates was that I only need the content from pages that use a certain template. However, I sat and looked at it and I think that, with a bit of reorganizing, I would only need pages with a certain parent. So, that would be two different ways of filtering the pages that I need...If that makes sense.
My thanks, but I need a bit more...How about getting all the children? This seems, to me, to require that you specify each child page and I'd like to have it get all of them.
This code
<?php query_posts( 'post_parent' => 130 ); // retrieve the child page of a parent ?>
Is it possible to do the same thing based on the template used by the page you are trying to embed, rather than by its ID?
you do know that the loop is just trying to get the raw data from the database?!?!?!?!?!
your template is mainly how you are styling the page, not just on CSS but how you set out your page.
When you say "page", do you actually mean "post"? That can make a huge difference.
If you actually mean "post", it's very simple, you just assign each post to a category and loop through that category.
But, since you specifically mentioned "pages", let's see what we can do with that... Off the top of my head, there's no way to list pages by the template that they are using.
Another question, what are you actually trying to accomplish here? Are you simply listing the pages, like this:
Page One
Page Two
Page Three
Or are you trying to display their content as well?
Page One Title
Page One content.............
Page Two Title
Page Two Content.............
I need to display the content, not just their title.
The thought process behind displaying them based on their templates was that I only need the content from pages that use a certain template. However, I sat and looked at it and I think that, with a bit of reorganizing, I would only need pages with a certain parent. So, that would be two different ways of filtering the pages that I need...If that makes sense.
http://codex.wordpress.org/Template_Tags/query_posts
This seems, to me, to require that you specify each child page and I'd like to have it get all of them.
This code
Is not showing anything on my page.
<?php query_posts(array('showposts' => 2, 'post_parent' => 130, 'post_type' => 'page')); ?>
This seems to be working...Does that seem right?
Thanks for all your help.