Plugin info

Total downloads: 10,344
Active installs: 100
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 6/26/2010 (5666 days ago)
Added to WordPress: 11/19/2009 (16 years old)
Minimum WordPress version: 2.8.4
Tested up to WordPress version: 3.0.5
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5666 days ago

20/100

Is WP Get Post Image abandoned?

Possibly abandoned (last update 5666 days ago).

Compatibility

Requires WordPress: 2.8.4
Tested up to: 3.0.5
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Auto Attach Thumbnails
Rating 5.0/5 (2 reviews)Active installs 30
Set featured images for individual posts
Rating 0.0/5 (0 reviews)Active installs 0
Images Visibility Control
Rating 0.0/5 (0 reviews)Active installs 0

Description

This plugin provides the template tag wp_get_post_image(). Use it to call dynamically created images uploaded via the WordPress media uploader.

NOTE: This plugin is intended for use by WordPress developers and theme builders only.

Usage


Default Usage

 null,
    'height' => null,
    'css' => '',
    'parent_id' => '',
    'post_id' => '',
    'filename' => '',
    'return_html' => true       
); ?>

By default, the function returns:

  • The last uploaded image wrapped in an image tag ().
  • A proportionately sized image with a width no greater than 200px.
  • The CSS class wp-image-*ID* and no other classes.
  • If you add thickbox via css, the appropriate anchor tag will be added for Thickbox compatibility.

Parameters

  • width (integer) – Width of image.

  • height (integer) – Height of image.

  • parent_id (integer) – The ID of the post_parent for the attachment. Specifying the parent_id returns the first image attached to the parent post according to menu_order.

  • post_id (integer) – The ID of the attachment.

  • filename (string) – The filename that corresponds to the post_name of the attachment.

  • return_html (boolean) – true returns the image wrapped in an XHTML image tag. false returns the image’s URL.

Example

ID, e.g. the WordPress loop
if(function_exists('wp_get_post_image'))
    echo wp_get_post_image('width=450&css=alignleft&parent_id='.$post->ID);  
?>