I'm building a theme on wordpress, and I need a conditional if the post or page content has links to images (href = "....../fubar.jpg").
This would:
if (is_singular () && ** conditional true to content with links to pictures **) {
/ / This post/page has links to images
else {}
/ / No link to image found
}
Would have to detect jpg, png and gif.
Is it possible to do this in wordpress?