title: wp_nav_menu exclude pages from menu
body: <p>I am trying to exclude pages from wp_nav_menu </p>
  
  <p>Here is the function to exclude pages from menu 
  Works well when </p>
  
  <pre><code>  &lt;?php $page = get_page_by_title('my title' );
     wp_nav_menu( array( 'theme_location' =&gt; 'menu-2', 'exclude' =&gt; $page-&gt;ID  ) ); ?&gt;
  </code></pre>
  
  <p>Works properly </p>
  
  <p>BUt when using </p>
  
  <pre><code>   &lt;?php $page = get_page_by_title('my title' );
           $pag1 = get_page_by_title('my title 1' );
           $pag2 = get_page_by_title('my title2' );
     wp_nav_menu( array( 'theme_location' =&gt; 'menu-2', 'exclude' =&gt; $page-&gt;ID,$pag1-&gt;ID,$pag2-&gt;ID  ) ); ?&gt;
  </code></pre>
  
  <p>Doesn't work properly.</p>