First choose a piece of wood about twice the diameter of the rope you’re working with. For the photo on the left, a rectangular piece was cut from a post; the others were cut from decorative caps for deck posts. (Harder woods work better here; cedar looks good, but tends to crack during fabrication.)
Drill a hole a little wider than the rope diameter and at least as deep. Be sure to leave at least an inch of wood beyond the end of the hole; this is where you’ll put hooks, eyes, or other fastening means. Then glue the rope in the hole with a strong waterproof epoxy. Put some epoxy between the rope strands first so it soaks into the rope and gives the reinforcing bolts (next step) something extra to hold on to.
After the epoxy has cured, drill a couple of 1/4″ holes through the side of the piece, through the rope and epoxy, and out the other side and insert bolts; countersink if you’re ambitious and there’s enough ‘wall’ thickness.
The final step is to attach the hook, eye, or whatever hardware you’ve selected.