title: Published posts are not query-able and not displayed in admin dashboard
body: <p>I have encountered this problem many times. This problem only happen when I programmatically create/edit posts. They could be customs post or even Wordpress' default post. The symptoms could be:</p>
  
  <ul>
  <li>The posts are not visible in admin dashboard. Post count of that custom post type still increase but no post is displayed in the list.</li>
  <li>Created posts are not query-able, even when <code>post_status</code> is set to <code>'any'</code>. Curiously when I set <code>post_status</code> to <code>published</code> it works.</li>
  </ul>
  
  <p><strong>This is a self-answered question</strong>. I encountered this problem several times before and always forget its cause. And searches hint to possibilities that many others are stuck without solution too.</p>