Why do I keep losing links when I switch to visual editor in WordPress
The problem is your <div> inside of your anchor tag. See this answer on StackOverflow about what tags are allowed inside of anchors. Inline elements ( a, span, strong, em among others ) can contain other inline elements and text nodes. and Generally, block-level elements may contain inline elements and other block-level elements. Generally, inline … Read more