one page template > list all pages' content > how?
-
Hi everyone,
I have come across a problem.I want to create a one-page Theme with smooth scrolling like this one
Retro ThemeFor that reason I want to list the full content of all my pages on one page(template). Every page will have its container with a unique name derived from its ID.
I know this could easily been done by using posts instead of pages but I want to use the posts for a different thing.
Is there a way to do this?
I found this but it produces empty output:?php query_posts('post_type=page'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if ($post->post_parent != '') { the_title(); the_content(); } endwhile; endif; ?>
Thanks for any suggestions!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘one page template > list all pages' content > how?’ is closed to new replies.