title: Wordpress display all pages on one page
body: <p>I need to display all the pages on the one page.</p>
  
  <p>At the moment I am using this to bring in each page:</p>
  
  <pre><code>&lt;?php 
  $page_id = 5; //id example
  $page_data = get_page( $page_id ); 
  $content = apply_filters('the_content', $page_data-&gt;post_content); 
  $title = $page_data-&gt;post_title; 
  echo $content; 
  ?&gt; 
  </code></pre>
  
  <p>But if a new page is created it wont display it as wont have this code and its ID in place..</p>
  
  <p>Is there a way to bring all the pages in automatically?</p>
  
  <p>Any help will be appreciated, thanks</p>