WordPress.org

Support

Support » How-To and Troubleshooting » Accessing wp_attachment_metadata information (post_thumbnail)

Accessing wp_attachment_metadata information (post_thumbnail)

Viewing 1 replies (of 1 total)
  • The attachment meta data is saved as a serialized array which can be pasted into an online unserializer if you want to see the full array. I use http://blog.tanist.co.uk/files/unserialize/index.php.

    This is what it looks like back in an array ( this is random data not yours).

    Array
    (
    [width] => 1500
    [height] => 1125
    [hwstring_small] => height='96' width='128'
    [file] => 2012/07/rubbish.jpg
    [sizes] => Array
    (
    [thumbnail] => Array
    (
    [file] => rubbish-150x150.jpg
    [width] => 150
    [height] => 150
    )
    
    [medium] => Array
    (
    [file] => rubbish-300x225.jpg
    [width] => 300
    [height] => 225
    )
    
    [large] => Array
    (
    [file] => rubbish-1024x768.jpg
    [width] => 1024
    [height] => 768
    )
    
    [featured] => Array
    (
    [file] => rubbish-170x170.jpg
    [width] => 170
    [height] => 170
    )
    
    [mini-thumb] => Array
    (
    [file] => rubbish-110x110.jpg
    [width] => 110
    [height] => 110
    )
    
    [post-thumbnail] => Array
    (
    [file] => rubbish-265x200.jpg
    [width] => 265
    [height] => 200
    )
    )
    [image_meta] => Array
    (
    [aperture] => 3.5
    [credit] =>
    [camera] => DSC-T9
    [caption] =>
    [created_timestamp] => 1290602180
    [copyright] =>
    [focal_length] => 6.33
    [iso] => 80
    [shutter_speed] => 0.01
    [title] =>
    )
    )

    See wp_get_attachment_img_src()

Viewing 1 replies (of 1 total)
  • The topic ‘Accessing wp_attachment_metadata information (post_thumbnail)’ is closed to new replies.
Skip to toolbar