[ Index ]

PHP Cross Reference of Wordpress 2.9.1

title

Body

[close]

/wp-includes/ -> post-thumbnail-template.php (summary)

WordPress Post Thumbnail Template Functions. Support for post thumbnails Themes function.php must call add_theme_support( 'post-thumbnails' ) to use these.

File Size: 76 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  has_post_thumbnail()
  get_post_thumbnail_id()
  the_post_thumbnail()
  get_the_post_thumbnail()

Functions
Functions that are not part of a class:

has_post_thumbnail( $post_id = NULL )   X-Ref
Check if post has an image attached.

param: int $post_id Optional. Post ID.
return: bool Whether post has an image attached (true) or not (false).

get_post_thumbnail_id( $post_id = NULL )   X-Ref
Retrieve Post Thumbnail ID.

param: int $post_id Optional. Post ID.
return: int

the_post_thumbnail( $size = 'post-thumbnail', $attr = '' )   X-Ref
Display Post Thumbnail.

param: int $size Optional. Image size.  Defaults to 'post-thumbnail', which theme sets using set_post_thumbnail_size( $width, $height, $crop_flag );.
param: string|array $attr Optional. Query string or array of attributes.

get_the_post_thumbnail( $post_id = NULL, $size = 'post-thumbnail', $attr = '' )   X-Ref
Retrieve Post Thumbnail.

param: int $post_id Optional. Post ID.
param: string $size Optional. Image size.  Defaults to 'thumbnail'.
param: string|array $attr Optional. Query string or array of attributes.



Generated: Fri Jan 8 00:19:48 2010 Cross-referenced by PHPXref 0.7