I am happy to see that the SHIFTIN/OUT example has possibly helped!

But I have not used the 18F14K22.

Have you checked the analog functions of the pins you are using?
As usual, post the code that is giving you trouble.