[QUOTE=BigRoyNL;26920]The code you posted doesn’t seem to cover rotations/orientations at all so it’s hard to see where a possible orientation mismatch might happen.
If there’s a rotational offset for the ‘zero/identity’ orientation for the IK and FK wrist control then of course this needs to be applied afterwards as well.
Otherwise you could transfer the world space matrix orientation from one to the other. 
Also I would recommend putting your code in a code block on the forum to ensure it keeps its formatting. It’s the hashtag (#) icon in the ‘advanced’ view for writing messages or replies.[/QUOTE]
Thanks for the formatting tip.
As for the script itself, I am kind of new to this whole Python thing and although I slowly start to integrate scripting into my rigging workflow, I don’t always understand what’s actually happening between the lines. I was following a tutorial for this script but the author didn’t explain how to match orientation of the IK wrist to that of an FK wrist. I’ve been trying to figure it out using my snap and orient script but so far I’ve had no luck 
fkwrist = cmds.xform(selected[0], query=True, rotation=True, worldSpace=True)
cmds.xform(selected[3], rotation=fkwrist, worldSpace=True)