WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Get Image

Take the last image daughter of a post on the selected size.

  1. Upload getimage.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place <?php gi_fullsize (); ?> in your templates
  4. You can place <?php gi_library ('thumbnail'); ?>

Using gi_library

It returns all images from yout post - not only the last daughter, where you can pass some parameters like size and type of return you wants. Sintax:

gi_library ($size, $extra, $print, $return_as)
  1. The sizes of gi_library () are: 'all', 'fullsize', 'medium', 'thumbnail'. Default: 'thumbnail'
  2. The extra is an extra string that you wants to put in your image tag. Default: ''
  3. The print is used if the return_as is string. It prints the string genered. Default: true
  4. The return_as is the return that you wants. Here is the powerfull way to manipulate your results. The result_as can be: 'string', 'array', 'brute_array'

Requires: 2.6 or higher
Compatible up to: 2.7.1
Last Updated: 2009-6-3
Downloads: 6,907

Ratings

4 stars
4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1