title: Wordpress WP_Post object ID doesn't match the page ID in the admin area
body: <p>I'm getting a menu in wordpress using this code</p>
  
  <pre><code>$items = wp_get_nav_menu_items( 'Top menu', $args );
  </code></pre>
  
  <p>It returns an array with items such as below</p>
  
  <pre><code>[4] =&gt; WP_Post Object
              (
                  [ID] =&gt; 54
                  [post_author] =&gt; 1
                  [post_date] =&gt; 2014-02-19 20:36:53
                  [post_date_gmt] =&gt; 2014-02-19 20:36:53
                  [post_content] =&gt;  
                  [post_title] =&gt; 
                  [post_excerpt] =&gt; 
                  [post_status] =&gt; publish
                  [comment_status] =&gt; open
                  [ping_status] =&gt; open
                  [post_password] =&gt; 
                  [post_name] =&gt; 54
                  [to_ping] =&gt; 
                  [pinged] =&gt; 
                  [post_modified] =&gt; 2014-02-19 20:36:53
                  [post_modified_gmt] =&gt; 2014-02-19 20:36:53
                  [post_content_filtered] =&gt; 
                  [post_parent] =&gt; 7
                  [guid] =&gt; http://localhost:8888/eastleigh/?p=54
                  [menu_order] =&gt; 6
                  [post_type] =&gt; nav_menu_item
                  [post_mime_type] =&gt; 
                  [comment_count] =&gt; 0
                  [filter] =&gt; raw
                  [db_id] =&gt; 54
                  [menu_item_parent] =&gt; 27
                  [object_id] =&gt; 46
                  [object] =&gt; page
                  [type] =&gt; post_type
                  [type_label] =&gt; Page
                  [url] =&gt; http://localhost:8888/eastleigh/about/menus/
                  [title] =&gt; Menus
                  [target] =&gt; 
                  [attr_title] =&gt; 
                  [description] =&gt; 
                  [classes] =&gt; Array
                      (
                          [0] =&gt; 
                      )
  
                  [xfn] =&gt; 
              )
  </code></pre>
  
  <p>Seems fine, but when i go into wordpress the page doesn't have that ID , in fact no pages do ( i hovered of the pages in the admin to check the page_id).  It does however match the object_id (46)</p>
  
  <p>if i dump out the get_pages array then the same page has the current id (46)</p>
  
  <pre><code>[5] =&gt; WP_Post Object
      (
          [ID] =&gt; 46
          [post_author] =&gt; 1
          [post_date] =&gt; 2014-02-19 20:35:25
          [post_date_gmt] =&gt; 2014-02-19 20:35:25
          [post_content] =&gt; 
          [post_title] =&gt; Menus
          [post_excerpt] =&gt; 
          [post_status] =&gt; publish
          [comment_status] =&gt; open
          [ping_status] =&gt; open
          [post_password] =&gt; 
          [post_name] =&gt; menus
          [to_ping] =&gt; 
          [pinged] =&gt; 
          [post_modified] =&gt; 2014-02-19 20:35:25
          [post_modified_gmt] =&gt; 2014-02-19 20:35:25
          [post_content_filtered] =&gt; 
          [post_parent] =&gt; 7
          [guid] =&gt; http://localhost:8888/eastleigh/?page_id=46
          [menu_order] =&gt; 0
          [post_type] =&gt; page
          [post_mime_type] =&gt; 
          [comment_count] =&gt; 0
          [filter] =&gt; raw
      )
  </code></pre>
  
  <p>Could someone please explain what i'm missing here?  </p>
  
  <p>Thank you</p>