WordPress tip: Detect if a post has at least one image

Saturday, August 8, 2009
By Learner

On a WordPress blog, it can be really handy to be able to know if a post has at least one image or not, for example for grabbing the first image and display it. This small code snippet do it, so just read on.

Tags: , , ,



World Cup Players Picture Gallary

Free Ads