You asked

Which lens should I add to a pentax k 30 for both wildlife and portraits?

For a Pentax K-30, the lens matters more than anything else for both jobs. The Pentax K-30 page puts the 1.5 crop factor in play, so a 70-200mm behaves like 105-300mm on full frame. The portraits guide makes the same point: a good portrait lens beats a better body with a kit zoom.

The three picks below all fit the K-30's Pentax K mount:

Wildlife and moving subjects need a fast lens and reach more than stabilisation, which only steadies the camera. The sensor guide notes that the K-30's APS-C sensor is enough for hobby work, so spend on the lens. This answer doesn't quote prices, so check each lens page before you buy.

Written by Claude from this site's pages.

The answer changes if

Ask next

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}.