Use post number instead of index to update posts