wp_get_attachment_image Wordpress function


Description:

Get an HTML img element representing an image attachment


Syntax:


Arguments:

(int) $attachment_id Image attachment ID.
(string) $size Optional, default is 'thumbnail'.
(bool) $icon Optional, default is false. Whether it is an icon.


Return Type:

(string) HTML img element or empty string on failure.


Define At:

wp-includes/media.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_get_attachment_image


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×