You asked

How do I choose the aperture for sharp landscapes with a 15mm lens on a nikon d7500?

The guide has no landscape-specific aperture rule, but its aperture page explains the principle. A small f-number (a wide aperture) gives shallow depth of field, so a sharp background and foreground need the opposite: a larger f-number. Many landscape shooters start around f/8 to f/11 and check the result on screen, but for the exact sharpness you get from a given lens, the guide can't say.

On the Nikon D7500, a 15mm lens frames like 22.5mm on full frame, so it's a wide-angle view. Three 15mm lenses in the catalogue suit landscapes:

The D7500 has no in-body stabilisation, and small apertures mean slower shutter speeds, so a tripod or a stabilised lens helps. The portraits aperture section covers the depth-of-field trade-off in more detail.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.