dcooney,
thanks for the quick response.
I am using this code to grab the first video, audio:
function thirty_eight_get_embedded_media( $type = array() ){
$content = do_shortcode( apply_filters( ‘the_content’, get_the_content() ) );
$embed = get_media_embedded_in_content( $content, $type );
if( in_array( ‘audio’, $type ) ){
$output = str_replace( ‘?visual=true’, ‘?visual=false’, $embed[0] );
} else {
$output = $embed[0];
}
return $output;
}
echo get_media_embedded_in_content(array( ‘video’, ‘iframe’) );
QUESTION: how can i grab your shortcode instead?