wp_get_attachment_link Wordpress function


Description:

Retrieve an attachment page link using an image or icon, if possible.


Syntax:


Arguments:

(int) $id Optional. Post ID.
(string) $size Optional, default is 'thumbnail'. Size of image, either array or string.
(bool) $permalink Optional, default is false. Whether to add permalink to image.
(bool) $icon Optional, default is false. Whether to include icon.
(string|bool) $text Optional, default is false. If string, then will be link text.


Return Type:

(string) HTML content.


Define At:

wp-includes/post-template.php


Wordpress Reference URL:

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


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