[ Index ]

WordPress Cross Reference

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: 142 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  has_post_thumbnail()
  get_post_thumbnail_id()
  the_post_thumbnail()
  update_post_thumbnail_cache()
  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.

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: string|array $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.

update_post_thumbnail_cache( $wp_query = null )   X-Ref
Update cache for thumbnails in the current loop

param: object $wp_query Optional. A WP_Query instance. Defaults to the $wp_query global.

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 'post-thumbnail'.
param: string|array $attr Optional. Query string or array of attributes.



Generated: Tue Mar 25 01:41:18 2014 WordPress honlapkészítés: online1.hu