Can you test the_content() in wordpress for img tags?

WarBloorm

New Member
I would like to make an if statement that tests if a post has images in them. If they do I want them to do one thing and if not I want them to do something else.Can someone guide me in the right direction?
 
Back
Top