Description
Format the 'thumbnail' featured image (format=F)Displays the featured image. Applies the thumbnail= parameter to determine the size of the featured image.
Usage
bw_field_function_featured_image( $post, $atts, $f );Parameters
- $post
- ( mixed ) required –
- $atts
- ( mixed ) required –
- $f
- ( mixed ) required –
Returns
voidSource
File name: oik/includes/bw_formatter.phpLines:
1 to 10 of 10
function bw_field_function_featured_image( $post, &$atts, $f ) { $atts['post_id'] = $post->ID; $thumbnail = bw_get_thumbnail_size( $atts ); if ( $thumbnail ) { $thumbnail_image = bw_get_thumbnail( $post->ID, $thumbnail, $atts ); if ( $thumbnail_image ) { bw_format_thumbnail( $thumbnail_image, $post, $atts ); } } }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 3 of 3
