I couldn't find explicit confirmation of this, can it be 0?

  • 2
    Simple answer, no. ID's start @ 1 – Pieter Goosen Oct 8 '15 at 6:55
  • Why not check the codex? – mmcglynn Jul 25 '17 at 14:17

No, post ID can not be 0 in the DB. But the value 0 has a special meaning in the code, indicating the currently handled post (if the context is set up correctly)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.