You asked
Which lens after a 50mm f 1 8 for portraits on a pentax aps c camera for rooms and groups?
For rooms and groups, the guide's next lens after the 50mm is a 35mm f/1.8 or f/1.4. On APS-C, a 35mm frames roughly like a 52mm on full frame, since the site treats 50mm on APS-C as about 75mm. That gives you room to fit several people without backing into the wall. The guide suggests this lens for environmental portraits that show where someone is, and for groups. The portraits guide also explains why wider lenses need more care: they exaggerate whatever is closest to the camera, so keep faces at a comfortable distance.
Your current lens, the Pentax smc DA 50mm f/1.8, is the site's pick for fast, cheap portraits on Pentax APS-C bodies. It stays the better lens for close headshots and background blur, so keep it for those.
The site does not have a catalogue page for Pentax APS-C cameras or a Pentax 35mm lens, so it can't name a specific Pentax 35mm model or confirm its price. Check that any 35mm you consider is made for the APS-C format and fits your body's mount. For a general starting kit, the lenses guide recommends a standard zoom alongside a fast prime, and the first camera guide advises spending about as much on lenses as on the body.
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}.