Let $U \subseteq \mathbb{R}^n$ be an open set. Let $f \in W^{1,p}(U)$ and suppose all the weak derivatives of $f$ are continuous. Is $f$ itself continuous?
It is a classic fact that if we assume a-priori $f$ is also continuous, then it is in $C^1$.
Here, however I do not assume $f$ is continuous.
You can show the continuity of $f$ as follows:
If $p = \infty$, then $f$ is Lipschitz continuous and you are done.
In case $p < \infty$, you can consider an open subset $O$ with $\overline O \subset U$. Then, $\overline O$ is compact and the continuous functions $D f$ are bounded on $\overline O$. Now, you can use the Sobolev embedding theorem to get $f \in W^{1,\infty}(O)$. Again, $f$ is Lipschitz on $O$ and (since $O$ was arbitrary), $f$ is continuous on $U$.
Now you know that $f$ is continuous and you can use the technique from the other question to show that $f$ is actually $C^1$.