One of the improvements in WordPress 2.9 is native support for thumbnail images on posts. The API is pretty good – although it assumes that you want to return the whole IMG tag. In my case I wanted to return the URL of the image (So I could wrap the actual thumbnail in a lightbox-style Full Article…
Query only posts with thumbnails
The issue with the coide for displaying only posts with thumbnails in the past has been that you query the posts type and then put a ‘if has post thumbnail’ conditional in the loop. This means that if you wanted 12 posts and that how many you get in the query, maybe only 6 have Full Article…
Post Thumbnails – Revisited
This article was published on the Matt Brett’s website here: http://mattbrett.com/2010/04/wordpress-post-thumbnails-revisited/ Shortly after the release of WordPress 2.9, I published my technique for bulletproof post thumbnails. Since then, it’s evolved yet simplified into a more robust solution, specifically for use in WordPress themes. The problem, was that each image uploaded was generating a new set Full Article…
Post Thumbnail Images
Introduction: Many WordPress themes, especially those with “magazine-like” layouts, use an image to represent each post. It might just be on the front page. It might be alone, or alongside an excerpt. Until now, there was no standardized way to do this. Many themes would require you to tediously enter a Custom Field with the Full Article…