I did not sell a company to Facebook for a billion dollars today. However, I did figure out how to make WordPress create a ton of image sizes from a single image and then figured a much easier way to include an image inside a WordPress post. I feel like at least a billion dollars having cracked it.
If any of you are interested, let me know in in the comments and I’ll write it up in more detail. In short, add lines of code to functions.php. Make sure you’ve assigned the image you want to appear on your image post as the “Featured Image”. Write your post. Publish.
Slick. I love it when I feel like I’m finally inside the head(s) of a developer team and can use both understand the ninja and then use it to my benefit.
Oh the time I saved myself by spending a few hours doing this today. THE TIME SAVINGS.
Now I just need to figure out a way to programmatically remove images from the post body of my image posts… Onward.
A side benefit of this is that when you click in from the homepage, that is the only click you need to see a large image. As much as I like the cool image popups, they added a bit to page load times. Happy Friday, people.