Unified mean-field study of ferro- and antiferromagnetic behavior of the Ising model with external field