title: how to get all post ids in wordpress
body: <p>I want to get all published posts in wordpress, I tried </p>
  
  <pre><code>&lt;div class="pppp" style="display:none"&gt;
  &lt;?php $post_ids = get_posts(array(
      'fields'        =&gt; 'ids', // Only get post IDs
  ));
  var_dump($post_ids);
  ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but return only 5 last post ids.</p>
  
  <pre><code> array(5) {   [0]=&gt;   int(35102)   [1]=&gt;   int(35097)   [2]=&gt;   int(35094)   [3]=&gt;   int(33281)   [4]=&gt;   int(33279) } 
  </code></pre>
  
  <p><strong>I want to know how can I get all postids of my wordpress sites</strong>?</p>