Advertisement
Guest User

Final Code

a guest
Oct 24th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. $uploads = wp_upload_dir();
  2. $audio = get_post_meta(17, 'meta_options', true);
  3. $filename = basename(get_post_meta( $audio, '_wp_attached_file', true));
  4.  
  5. if ( $audio == true ) { ?>
  6. <embed src="<?php echo $uploads['url']; echo '/'; echo str_replace(' ','-',$filename); ?>" autostart="true" height="0" hidden="true" loop="true" width="0"></embed>
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement