Suppose I have an aqueous solution (1) of $\ce{CH3COOH}$. The chemical species in the solution will be $\ce{H2O, H3O+, CH3COO-}$ and, since it's a weak acid, some $\ce{CH3COOH}$ will remain.
Suppose I have another solution (2) containing initially water and $\ce{HCl}$. The chemical species in the solution will be $\ce{H2O, H3O+}$ and $\ce{Cl-}$ since it's a strong acid. Suppose the initial quantity of $\ce{HCl}$ was calculated so that the obtained concentration of $\ce{H3O+}$ in solution (2) is the same than in solution (1). But in solution (1), in addition to the $\ce{H3O+}$ ions, we have some molecules of another acid, the remaining $\ce{CH3COOH}$. Then the $\mathrm{pH} = - \log [\ce{H3O+}]$ is the same for (1) and (2), while (1) contains more "acidic" molecules.
How is pH a measure of acidity then ? It seems to me that if for practical purposes I had to use one of these solutions and wanted to avoid protons being exchanged, I would not consider these two solutions equally.
\ce{...}
environment for chemical formulae. Type$\ce{SO4^2-}$
for $\ce{SO4^2-}$ or$\ce{CH3COO-}$
for $\ce{CH3COO-}$. It not only makes typing much easier but also uses an upright font. Check out the help center and this meta-post for more information. $\endgroup$