5

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

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

1 Answer 1

10

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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