If your lens has an A setting on the aperture ring, keep that selected and use the camera's e-dial to choose the aperture. There is no reason to ever use the aperture ring on A series lenses and newer, as this would actually make them meter like manual lenses.
To be able to use manual lenses, you need to change a custom function setting, and put the camera in M mode and manual focus. All the details can be found here:
https://www.pentaxforums.com/forums/54-pentax-lens-articles/110657-how-use-me...k-x-k-7-a.html