check for post as id, which happens in some versions of wordpress