to the tippy ↑

WordPress & Wistia

Wistia WordPress Plugin

Using the Wistia WordPress Plugin, you can add your embed codes and they will be protected. It won't take up any space in your WordPress admin dashboard, but instead works quietly in the background (as it should).

Note

Wistia embed codes can only be used with WordPress.org installs. Read up on the difference between WordPress.com hosted blogs and WordPress installs.

Using the oEmbed Embed Code

The Wistia WordPress Plugin allows for using oEmbed embed codes, which are really simple links that don't break in WordPress (yay!).

To access them, first customize your video, then open the Embed & Share window from the Video Actions menu. Select the Inline Embed option.

Under the Advanced Options area, select the oEmbed checkbox. The embed code will update to an oEmbed URL, which you can add to your WordPress post.

WordPress themes often set a maximum width for oEmbed embed codes. If you want to change that, check out How to Set oEmbed Max Width in WordPress 3.5 with $content_width.

Note

The oEmbed embedding method does not work with CNAMEd accounts.

Tips for Using WordPress

  • When inserting the embed codes, make sure you are in HTML editing mode, and leave a line open above and below the embed code. If you switch from HTML to Visual mode, it can add formatting tags around your oEmbed which may cause it to break. Be careful of that!
  • If you have larger resolution videos and they are appearing smaller or squished, access the WordPress admin control panel (Settings -> Media -> Maximum Video Embed Size) and set the max to the largest size of your video ('no limit' setting doesn't work, must be actual size).

Styling Your Embed in WordPress

To center your video in WordPress, first add an outer div with the style text-align: center;. Then, add a second div with the style display: inline-block;, as seen here:

center-wordpress.html
1
2
3
4
5
6
7
<div style="text-align: center;">
  <div style="display: inline-block;">

    http://dave.wistia.com/medias/mgdmzrzrm4?embedType=api&videoWidth=640

  </div>
</div>

Using Wistia Video SEO with WordPress

The best way to use Video SEO, Wistia embeds, and WordPress together is by installing the awesome Yoast plugin. Joost, the one-man wrecking crew behind Yoast, has put together a really valuable and easy-to-use workflow that also includes Wistia support (awesome!!).