Tag Archives: tips

Set width of embedded media in WordPress 3.5

In WordPress 3.5, there’s no more option to set the width and height of oEmbed-embedded media (Youtube, Vimeo, Flickr, Twitter etc) in the admin interface. The max width is now automatically the width defined in the functions.php of your theme:

if ( ! isset( $content_width ) ) $content_width = 600;

Just change 600 in the above code to whatever the width of your main content area is in pixels. More info about the change on WP Beginner.

Simplify permalinks for better SEO

The latest WordPress 3.3 includes a fix that removes the performance problems related to using just /%postname%/ as your permalink structure without any prefixing dates/numbers. According to Joost de Valk, using dates in URL’s can result in poor click-through-rate, so I thought I’d go ahead and make the switch.

Check out the instructions on Joost’s blog. He also has a nifty tool for generating the necessary .htaccess redirects.