Search code examples
phpwordpressflickrtwenty-ten-theme

How do I change Wordpress's TwentyTen auto-embed from flickr default width (UPDATED QUESTION)?


When I paste in an images URL from Flickr into a wordpress post it auto embeds it into the post. Somehow it is getting set to a default width of 500px. How/where do I change this? I just can't find any documentation for it, arg!

Note: I am using the twentyten theme.

EDIT:

To clarify, this is not a stylesheet issue.

If I paste this into a post:

http://www.flickr.com/photos/davebryan/5755930575/

Wordpress auto embeds it and changes it to this:

<img width="500" height="331" alt="" src="http://farm6.static.flickr.com/5267/5755930575_eee9e7c727.jpg">

Where is it getting the width and height?


Solution

  • It's auto-embedding http://codex.wordpress.org/Embeds using http://oembed.com via the file wp-includes/class-oembed.php

    You can uncheck autoembedding in Administration > Settings > Media SubPanel and set maximum width and height.

    You can also use a shortcode for size, i.e.: [embed width="123" height="456"]...[/embed]