14. Featured Images

We finally made it to the featured images chapter. There were several places in our theme that we just plopped in the the_post_thumbnail() function with no real direction, because I wanted to make sure you had a good foundation in theme development before we moved on to more advanced steps. Unfortunately, this means that we’re doing things a little backwards, but now you should have no problem understanding everything in this chapter.

What you’re about to learn

• How to register thumbnails for your theme

• How to creating multiple crop sizes

• The difference between hard and soft cropping

• How to display thumbnails by name in your theme

A Quick Recap

In previous chapters, we covered how to add theme support for post thumbnails ...

Get Web Designer’s Guide to WordPress: Plan, Theme, Build, Launch now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.