Title: WP Get Post Image
Author: thewebist
Published: <strong>Nobyembre 19, 2009</strong>
Last modified: Hunyo 26, 2010

---

Maghanap ng mga plugin

Ang plugin na ito ay **hindi pa nasusubukan sa pinakabagong 3 major release ng WordPress**.
Maaaring hindi na ito minamantine o sinusuportahan at maaaring may mga isyu sa compatibility
kapag ginamit sa mas bagong bersyon ng WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-get-post-image.svg)

# WP Get Post Image

 Ni [thewebist](https://profiles.wordpress.org/thewebist/)

[I-download](https://downloads.wordpress.org/plugin/wp-get-post-image.zip)

 * [Mga Detalye](https://tl.wordpress.org/plugins/wp-get-post-image/#description)
 * [Mga Review](https://tl.wordpress.org/plugins/wp-get-post-image/#reviews)
 *  [Pag-install](https://tl.wordpress.org/plugins/wp-get-post-image/#installation)
 * [Development](https://tl.wordpress.org/plugins/wp-get-post-image/#developers)

 [Suporta](https://wordpress.org/support/plugin/wp-get-post-image/)

## Deskripsyon

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

    ```
    <?php wp_get_post_image($args); ?>
    ```

#### Default Usage

    ```
    <?php $args = array(
        'width' => 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 (`<img />`).
 * 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 `<a>` 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

    ```
    <?php 
    // use this example wherever you have access to $post->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);  
    ?>
    ```

## Pag-install

Install the plugin as follows:

 1. Upload the folder `wp-get-post-image` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `<?php echo wp_get_post_image(); ?>` in your templates

## FAQ

No questions yet.

## Mga Review

Wala pang reviews para sa plugin na ito.

## Mga Contributor at Developer

Ang “WP Get Post Image” ay open source software. Ang mga sumusunod na tao ay nag-
ambag sa plugin na ito.

Mga Contributor

 *   [ thewebist ](https://profiles.wordpress.org/thewebist/)

[Isalin ang “WP Get Post Image” sa iyong wika.](https://translate.wordpress.org/projects/wp-plugins/wp-get-post-image)

### Interesado sa development?

[Tingnan ang code](https://plugins.trac.wordpress.org/browser/wp-get-post-image/),
i-check ang [SVN repository](https://plugins.svn.wordpress.org/wp-get-post-image/),
o mag-subscribe sa [development log](https://plugins.trac.wordpress.org/log/wp-get-post-image/)
sa pamamagitan ng [RSS](https://plugins.trac.wordpress.org/log/wp-get-post-image/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2 (2010-01-26)

 * Adjusted `$image->basepath` to reference `get_bloginfo('wpurl')` instead of `
   get_bloginfo('url')`. This makes the plugin work when WordPress is installed 
   in one directory while the blog displays in another. (HT: [Mike Cohen](http://mikecohenmedia.com/))

#### 0.1 (2009-11-23)

 * first version

## Meta

 *  Bersyon **0.2**
 *  Huling na-update **16 taon ang nakalipas**
 *  Mga aktibong installation **100+**
 *  Bersyon ng WordPress ** 2.8.4 o mas bago **
 *  Sinubukan hanggang **3.0.5**
 *  Wika
 * [English (US)](https://wordpress.org/plugins/wp-get-post-image/)
 * Mga Tag
 * [attachments](https://tl.wordpress.org/plugins/tags/attachments/)[function](https://tl.wordpress.org/plugins/tags/function/)
   [images](https://tl.wordpress.org/plugins/tags/images/)[post image](https://tl.wordpress.org/plugins/tags/post-image/)
   [template tag](https://tl.wordpress.org/plugins/tags/template-tag/)
 *  [Advanced View](https://tl.wordpress.org/plugins/wp-get-post-image/advanced/)

## Mga Rating

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-get-post-image/reviews/#new-post)

[Tingnan lahat ng review](https://wordpress.org/support/plugin/wp-get-post-image/reviews/)

## Mga Contributor

 *   [ thewebist ](https://profiles.wordpress.org/thewebist/)

## Suporta

May gusto kang sabihin? Kailangan ng tulong?

 [Tingnan ang support forum](https://wordpress.org/support/plugin/wp-get-post-image/)

## Mag-donate

Gusto mo bang suportahan ang pagpapaunlad ng plugin na ito?

 [ Mag-donate sa plugin na ito ](http://michaelwender.com)