Skip to Content
Smashing WordPress: Beyond The Blog
book

Smashing WordPress: Beyond The Blog

by Thord Daniel Hedengren
February 2010
Beginner to intermediate
322 pages
8h 40m
English
Wiley
Content preview from Smashing WordPress: Beyond The Blog

Chapter 14. FUN WITH IMAGES

It's said that a picture is worth a thousand words. Or maybe it speaks a thousand words, I'm not sure. The point is that an image can tell a story a lot faster than text can. This isn't to say that images are always preferred over text; I'm pretty sure you can agree that isn't the case. It is no secret, however, that images and text work extremely well together. Other than just spicing things up, an image can also help tell a story and (literally) illustrate a point.

Some sites use more images than others, but most sites are better off whenever they do something thought-through with their galleries and illustrations. This chapter is about displaying images in a WordPress site, beyond the traditional inclusion of illustrative points or inspiring scenery in your posts and pages. It is more about galleries, presentation, and photo-sharing services, not to mention the small matter of actually setting up WordPress image management in a way that makes sense.

Working with Image Galleries

Ever since WordPress 2.5, there has been support for the [gallery] shortcode and the possibilities it brings. What [gallery] does really is output uploaded images in a clickable thumbnail grid. Then you can let your visitors see a larger version of the image, either in your theme's design, or the original file itself. The former is called the attachment page, since that's what images are: attachments to blog posts. This built-in functionality should cover most of the needs you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Smashing WordPress: Beyond the Blog, 3rd Edition

Smashing WordPress: Beyond the Blog, 3rd Edition

Thord Daniel Hedengren
Expert PHP and MySQL®

Expert PHP and MySQL®

Andrew Curioso, Ronald Bradford, Patrick Galbraith

Publisher Resources

ISBN: 9780470684153Purchase book