How to fetch all videos in custom page which uploaded in wp-admin (Media) in wordpress

Uploaded images, video’s etc. are stored as posts with the type “attachment”; use get_posts( ) with the right parameters. Try this; the code loops trough all attachments and displays them: $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => null, // any parent ‘post_mime_type’ => ‘YOUR-POST-MIME-TYPE’ ); $attachments = get_posts( … Read more

How can I add WordPress Audio Player as featured audio in Audio Blog Posts?

so I took a look at your updated code, and it looks like where you’re writing: $audio_url = get_post_meta($post->ID, ‘$key’, true); //this is getting your custom field url You forgot to replace ‘$key’ with the actual string name of the meta you’re looking for, which judging from your functions, is called ‘link’. So I edited … Read more

WordPress Background Audio – Continous AutoPlay

Since I don’t have enough reputation to add a comment yet, I read on another website that someone used http://scmplayer.net/ as an alternative to frames/popups which seems to be a little script you can generate and then use on both non-WordPress and WordPress sites (since it just needs to be inserted after the <body> tag). … Read more

MediaElement audio tag not visible

The audio shortcode does a lot more than just create an tag in the page. The WordPress audio and video shortcodes are powered by the MediaElementJS library, which is a combination of Javascript and CSS code that loads into the footer of the page whenever you have a post with one of those in it. … Read more