Post Thumbnails (category)
| get_attachment_link() | Gets the URL of the media file page on the site (front-end). |
| get_post_thumbnail_id() | Gets the ID of the current (or specified) post thumbnail (featured image). Gets ID of WP attachment (image). |
| get_the_post_thumbnail() | Gets the IMG tag of the post thumbnail (if exists). |
| has_post_thumbnail() | Checks if the specified post has a thumbnail image. Conditional tag. |
| the_attachment_link() | Outputs an HTML A tag link to the file attached to the post (attachment) or the page of that file in the template. |
| the_post_thumbnail() | Outputs the HTML code (<img> tag) for the thumbnail of the current post. |
| wp_get_attachment_image() | Gets the |
| wp_get_attachment_image_src() | Gets an array of data for the specified image: URL, width, height of the attachment image. |
| wp_get_attachment_image_url() | Gets the URL of the attachment image by the provided image ID. You can also specify the size of the image for which you need to get the URL. |
| wp_get_attachment_link() | Gets a link to the attachment file or WP attachment page. Returns the <a> tag. |