Genuine Pentax items can be expensive:
You need:
- At the camera: Hot Shoe Adapter F (#31022) or Hot Shoe Adapter FG (#31045).
- Between camera and flash: F5P (#37347) or F5PL (#37349) Extension Cord.
- At the flash: Hot Shoe Adapter F (#31022) or Off Camera Shoe Adapter F (#31046)
The difference between 31022 and 31046 is that the foot of the 31022 has contacts, passing through the contacts on the top of the adapter; the foot of the 31046 has a 1/4" threaded hole, not contacts.
The 31045 does not block the built-in flash.
From left to right in the photo below: 31045, 31022, 31046.
Or you can just get a third-party cord on FleaBay. I've been using one for the last 3 years, no problem yet: