title: Wordpress wp-list-pages exclude with page title
body: <p>I'm using wp-list-pages in Wordpress but I need to exclude some pages but I don't want to use the page id - I want to use the page title to determine which page to exclude.</p>
  
  <p>I'm using this code to get the page id from the titles.</p>
  
  <pre><code>    &lt;?php
  
          $exclude_page_1 = get_page_by_title('pageOne')-&gt;ID;
          $exclude_page_2 = get_page_by_title('pageTwo')-&gt;ID;
  
          $pages_args = array(
            'title_li' =&gt; '',
            'depth' =&gt; 1,
            'exclude' =&gt; $exclude_page_1, $exclude_page_2
          );
  
          wp_list_pages($pages_args);
  
      ?&gt;
  </code></pre>
  
  <p>This works but only excludes the first pages.</p>
  
  <p>How can I exclude multiply pages using this method.</p>