Having read the following was wondering something: $$\mathrm {p}K_\mathrm{a} = -\log\frac{[\ce{H+}]_\mathrm{eq}[\ce{A-}]_\mathrm{eq}}{[\ce{HA}]_\mathrm{eq}} $$ $$\ce{HA <=> H+ + A-}$$ $$\mathrm{pH = p}K\mathrm{_{a}} +\mathrm{log\frac{[\ce{A-}]}{[\ce{HA}]}} $$ This rmgd $$ \mathrm{[\ce{A-}] = [salt] }$$ when acid is weak.
Now my question is like this: take a beaker of $\ce{CH3COOH}$. Now add $\ce{CH3COONa}$. Now here using the a over formula as salt concentration increases $\mathrm{pH}$ should decrease when take in $\ce{A-}$ as salt concentration. However this same $\ce{A-}$ was there in the $\mathrm{p}K_\mathrm{a}$ formula so shouldn't the $\mathrm{p}K_\mathrm{a}$ change to compensate? If so then there will be no $\mathrm{pH}$ change but I have read that there is $\mathrm{pH}$ change on adding $\ce{CH3COONa}$ in a solution. What is wrong with this?