It’s easy to embed SmugMug into WordPress, either photos or video. Here’s how.
SmugMug has long been a solid photo hosting company, offering beautiful photo galleries and the ability to sell prints or products through pro photo labs. If you’d like to share your SmugMug photos or videos in your WordPress posts or pages, here are two ways to do it without needing a plugin (these options will work on any WordPress site, including those on WordPress.com).
Embed SmugMug into WordPress with oEmbed
This method doesn’t just apply to SmugMug and I’ve described previously how it works, but it’s pretty simple. In your WordPress post editor, just drop the URL to a SmugMug photo onto a line all by itself, like this:
When you publish the post, you’ll see the photo appear.
Use SmugMug Embed Codes to Control Size and Linking
The other option is to use the various embed codes provided by SmugMug that allow you to better control the size of the embedded photograph. Here’s how:
Go to the photo in your SmugMug Gallery and find the Share button. The exact location will depend on your gallery style, but you’re looking for this button:
Click it and choose the Get a Link option. You’ll then see this screen, and you want the Embeddable Links tab, which looks like this:
Choose small, medium, or large for your embeddable image, and click the Copy button to the right of the one you want. The block of code will look something like this:
- Paste that block of code into your blog post, and then you’ll have an embedded photo, like so:
<a href="http://gallery.hockleyphoto.com/Artwork-Prints/Places/i-w8FtH8P/A" title="Seattle Skyline as seen from Gas Works Park"><img src="http://gallery.hockleyphoto.com/Artwork-Prints/Places/i-w8FtH8P/0/M/DSC00455-M.jpg" title="Seattle Skyline as seen from Gas Works Park" alt="Seattle Skyline as seen from Gas Works Park"></a>
Either of these options lets you embed a SmugMug photo or video into a WordPress post or page without using a plugin.