title: How to get all post list in wordpress admin?
body: <p>i am creating a plugin. 
  i want to get all post like title and url. Not on frontpage just admin panel.
  when i try to use this but not working</p>
  
  <pre><code>&lt;?php
  $args = array( 'numberposts' =&gt; -1); 
  $posts= get_posts( $args );
  if ($posts) {
      foreach ( $posts as $post ) {
          setup_postdata($post);
          the_title();
      }
  }
  ?&gt;
  </code></pre>