I have a K7 with the kit WR lens and a 55-300mm DA. No problems with focus sharpness, but I take care that I'm either using a fast enough shutter speed, or a tripod. I don't do a lot of the sort of photography that will find back/front focus issues e.g. not much closeup work. However the ones I did of the gliding club trophies are fine - I did manual focus for those.
Pentax K7 - a set on Flickr
From your photostream:
IMGP8498_exposure
Looks sharp where it's in focus, has a very shallow depth of field. See below for more on depth of field.
IMG
Has a 1-second exposure, will not be sharp unless you used a tripod but looks fine on the bright posts.
IMGP8654
Lenses are generally not at their sharpest at f22 - f8-f11 usually wins hands down. 1/25 is fairly slow and the faster shutter speed from a bigger aperture would help if you were hand-holding. The building looks soft, the camera looks to have focussed on the bushes in front of it.
IMGP8807
IMGP8787
Again 1/25 might be too slow for handholding, again the nearer bits of the image look sharper.
IMGP2677
Do you take everything at 1/25? Nothing is sharp here, camera blur might be the problem.
IMGP2673
1/30th! And it looks sharp to me, but with a very shallow depth of focus. I put the values into the following URL, had to guess how close you are but reckon you are right on top of it so put in 1 foot (~30cm) and you have almost no depth of field. Somewhere round f8 would have given you about an inch, but of course you would have needed a tripod.
Online Depth of Field Calculator
Didn't think there is much to gain from looking at more and I can't bear the idea of looking at the food shots large.
So I think maybe it's a user problem - where you are focussing - *maybe* the lens you used for the long shots is focussing a bit too close, and with the close-ups you quite possibly have camera shake and/or too shallow a depth of field. Remember to use shutter delay if you use a tripod, and that automatically turns off the shake reduction.
(edit)
PS I suspect this should be in a different forum - 'General Technical Troubleshooting' maybe - it isn't a K5 question really, it's a question about image quality from a K7.