I'm doing a theme that is supposed to be ease to create, but I have now reached a standstill and need to get past this.

Is there a way to display/show all pages at once? Or can I create a custom query to display all the pages with templates and not only the content?

Something like this:

| 1 | 2 | 3 |

Number represents the page which is shown in fullscreen mode and when the pagelink is clicked we slide to the page.

1 Answer 1

$query = new WP_Query( 'post_type=page' );

as seen at codex http://codex.wordpress.org/Class_Reference/WP_Query#Type_.26_Status_Parameters

  • That just returns the content, not the actual page
    – Jonas
    Jun 20, 2012 at 9:31
  • so you want pull entire page from header to footer?
    – Dazilio
    Jun 20, 2012 at 9:45
  • If that is the way to do it, then yes. But the header is already included
    – Jonas
    Jun 20, 2012 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.