how could a current in a square loop has a vector potential be zero due to 2 sides only.
I believe the vector potential is zero in the center of loop only.
do you mean at the center the vector is zero inside the loop. or only for two sides that are parallel to the x axis.
Separate names with a comma.