WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
$query = new WP_Query( 'post_type=page' );

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

share|improve this answer
That just returns the content, not the actual page – Jonas Jun 20 '12 at 9:31
so you want pull entire page from header to footer? – Gembel Intelek Jun 20 '12 at 9:45
If that is the way to do it, then yes. But the header is already included – Jonas Jun 20 '12 at 10:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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