4

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
9

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 agree to our terms of service, privacy policy and cookie policy

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