Description
Return a full sized image for the postPrior to oik version 2.0 the logic was like this First we look for an attached image to the post we choose one image randomly from those attached If found we use that. In oik v2.1 this has been switched First get the featured image ( using bw_get_thumbnail() ) If that's not set then access an image randomly. Should this be an option that we can set?
Usage
bw_get_fullimage( $post_id, $size, $atts );Parameters
- $post_id
- ( ID ) required – post ID
- $size
- ( string ) optional default: full – the image size required
- $atts
- ( array ) optional – array of key value pairs
Returns
voidSource
File name: oik/includes/bw_images.incLines:
1 to 8 of 8
function bw_get_fullimage( $post_id, $size='full', $atts=null ) { $return_value = bw_get_thumbnail( $post_id, $size, $atts ); if ( !$return_value ) { $return_value = bw_get_random_image( $post_id, $size, $atts ); } //bw_trace( $return_value, __FUNCTION__, __LINE__, __FILE__, "return_value" ); return( $return_value ); }View on GitHub View on Trac
Invoked by
Calls
1 to 2 of 2
