Added function to flag missing links

Fixed numerous wordpress notices and warnings