1
peeps

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

published 1032 days, 12 hours, 3 minutes ago posted by http://jonnyboats.wordpress.com/http://jonnyboats.wordpress.com/ 1033 days, 17 hours, 27 minutes ago
Saturday, July 25, 2009 8:18:17 PM GMT Friday, July 24, 2009 2:54:11 PM GMT

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

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.

category: News | clicked: 0 | | source: www.wprecipes.com | show counter code
tags: WordPress

No comments yet, be the first one to post comment.

To post your comment please login or signup