Shutterstock has rejected some of my landscapes because not all is in focus. I was taught to use Aperture priority, and f11 and focus on a third of the way in. But it hasn’t been successful for me. It is always blurry in the distance.
So I just looked up how to get the distance in focus and found the following youtube video.
Use a tripod, because you will be using a larger f number like f16, f22. Hand held, these f numbers can cause camera shake because the shutter speed is less and you will have less light.
All of this is best explained by this youtube video