Title: Simple Image Grabber
Author: bandicootmarketing
Published: <strong>12 ມີນາ 2009</strong>
Last modified: 18 ສິງຫາ 2015

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/simple-image-grabber/assets/banner-772x250.png?rev=553198)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/simple-image-grabber_69645b.svg)

# Simple Image Grabber

 ໂດຍ [bandicootmarketing](https://profiles.wordpress.org/tinkerpriest/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/simple-image-grabber.1.0.5.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/simple-image-grabber/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/simple-image-grabber/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/simple-image-grabber/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/simple-image-grabber/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/simple-image-grabber/)

## ຄຳອະທິບາຍ

Display one or all images from a post’s content. Options include image width, height,
class and permalink.

## ການຕິດຕັ້ງ

 1. Unzip the simple-image-grabber.zip file.
 2. Upload the `simple-image-grabber` folder to the `/wp-content/plugins/` directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Place `<?php images(); ?>` within the loop to grab your post’s images.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

1) How can I customize the Simple Image Grabber function?

The images() function accepts five variables.

The basic use of the function looks like: `<?php images( '1' ); ?>` or `<?php images();?
>`

This will display the first image from your post, with its default width and height,
no class and a permalink to the post.

This is how the function looks with passing all variables directly or through an
array:

    ```
    <?php images( $number, $width, $height, $class, $permalink, $echo ); ?>

    <?php
    $defaults = array(
        'number' => 1,
        'width' => null,
        'height' => null,
        'class' => 'alignleft',
        'permalink' => true,
        'echo' => true
    );

    images( $defaults );
    ?>
    ```

$number = the image you want to pull from your post, ie. the first image from the
post (‘1’) or the second image from the post (‘2’) and so on. NOTE: If you use ‘
all’, it will display all images from the post.

$width = the width of the displayed image

$height = the height of the displayed image

$class = the class you would like to assign to the displayed image

$permalink = whether you would like the image to link to the post or not

$echo = echo or return the value

The following function will echo the second image from a post (if there is one) 
with a width of 150px and a height of 200px, the class “alignleft” and no link to
the post.

    ```
    <?php images( '2', '150', '200', 'alignleft', false ); ?>
    ```

The following will return all images from a post with their original width and height,
a class name of alignright and a link to the post.

    ```
    <?php
    $args = array(
        'number' => 'all',
        'class' => 'alignright',
        'echo' => 0
    );

    $all_images = images( $args );
    ?>
    ```

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Simple Image Grabber” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “Simple Image Grabber” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/simple-image-grabber)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/simple-image-grabber/), 
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/simple-image-grabber/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/simple-image-grabber/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/simple-image-grabber/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

1.0.5 (2015-8-18)

 * Added validation
 * Updated contributor username
 * Updated version and stable tag

1.0.4 (2012-10-04)

 * Updated donate link

1.0.3 (2012-06-04)

 * Added the ability to pass an array to the images() function
 * Added the ablity to either echo or return the value string
 * Cleaned up and improved code
 * Added comments and PHPDocs

1.0.2 (2009-10-15)

 * Added original width and height to img tag if neither is set

1.0.1 (2009-03-16)

 * Fixed issue with “All” variable

1.0 (2009-03-11)
 Initial Public Release

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.0.5**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **11 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **100+**
 *  ເວີຊັນ WordPress ** 2.7 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.3.34**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/simple-image-grabber/)
 * ແທັກ
 * [grab images](https://lo.wordpress.org/plugins/tags/grab-images/)[posts](https://lo.wordpress.org/plugins/tags/posts/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/simple-image-grabber/advanced/)

## ການໃຫ້ຄະແນນ

 5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/simple-image-grabber/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/simple-image-grabber/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/simple-image-grabber/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/simple-image-grabber/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/simple-image-grabber/reviews/?filter=1)

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

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/simple-image-grabber/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/simple-image-grabber/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4W58JWNBHWKK4)