WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp get attachment thumb file

Contents

Description

Retrieve thumbnail for an attachment.

Usage

<?php wp_get_attachment_thumb_file$post_id ); ?>

Parameters

$post_id
(integer) (optional) Attachment ID.
Default: 0

Return Values

(mixed) 
False on failure. Thumbnail file path on success.

Examples

Notes

Change Log

Since: 2.1.0

Source File

wp_get_attachment_thumb_file() is located in wp-includes/post.php.

Related

Attachment Functions: the_attachment_link(), get_attachment_link(), wp_get_attachment_link(), wp_get_attachment_image(), wp_get_attachment_image_src(), wp_get_attachment_url(), wp_get_attachment_thumb_file(), wp_get_attachment_thumb_url(), is_attachment(), wp_get_attachment_metadata()


See also index of Function Reference and index of Template Tags.