You appear to be a bot. Output may be restricted
Description
Displays attached videos
Usage
bw_attached_videos( $atts, $width, $height );
Parameters
- $atts
- ( array ) required – shortcode parameters
- $width
- ( string ) required –
- $height
- ( string ) required –
Returns
void
Source
File name: oik-video/oik-video.inc
Lines:
1 to 15 of 15
function bw_attached_videos( $atts=null, $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 ); } } }