Check if page/post has any anchors that link to an image jpg/gif/png
What I’m aiming to do is add fancybox to a site I’m developing, but I only want to enqueue the JS/CSS etc if the page/post needs it. My thoughts are that I would need to check all the anchor tags on the post or page , and if the anchor tags link to any form … Read more