Description
Displays attached videos
Usage
bw_attached_videos( $atts, $width, $height );Parameters
- $atts
- ( array ) required – shortcode parameters
- $width
- ( string ) required –
- $height
- ( string ) required –
Returns
voidSource
File name: oik-video/oik-video.incLines:
1 to 14 of 14
function bw_attached_videos( $atts, $width, $height ) { $atts[ 'post_type'] = bw_array_get( $atts, "post_type", "attachment" ); if ( $atts[ 'post_type'] == "attachment" ) { $atts[ 'post_mime_type' ] = bw_array_get( $atts, "post_mime_type", "video" ); } $class = bw_array_get( $atts, "class", "bw_video" ); oik_require( "shortcodes/oik-attachments.php" ); $posts = bw_get_posts( $atts ); if ( $posts ) { foreach ( $posts as $post ) { bw_video( $post->guid, $width, $height ); } } }
Called by
1 to 1 of 1
Invoked by
Calls
1 to 2 of 2
