$\ce{Na_2HPO_4}$ is amphoteric, which means it can act as a base or as a acid depending on which substance they react with.
This is the reaction in which disodium phosphate appears to be an acid:
$$\ce{Na_2HPO_4 + H_2O \rightarrow H3O+ + Na_2PO_4-}$$
This is when it acts as a base:
$$\ce{Na_2HPO_4 + H_2O \rightarrow OH- + Na_2H_2PO_4+}$$
Did I write those two reactions currently? If not, what's wrong with my reasoning?