bschultz Posted August 4, 2015 Share Posted August 4, 2015 (edited) I am abandoning Wordpress after several years. I need to handle some plugin functionality though OUTSIDE of Wordpress. I currently have a plugin that takes a link to an mp3, and Wordpress displays an html5 audio player. I also have a plugin that takes a youtube link, and embeds that video in the post. I don't need any code (unless you'd like to show me)...but what functions should I be using to find those links...and then add in the other coding needed to achieve what the plugins did? I don't want to inlcude the Wordpress files and structure in every page just to be able to use the plugins with the new code. Here's what I currently have in the database: http://domain.com/link.mp3 Here's the code I need to add: <audio controls> <source src="http://domain.com/link.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> And for Youtube: https://www.youtube.com/watch?v=qvwefWgIQhY Needs to be: <iframe width="420" height="315" src="https://www.youtube.com/embed/qvwefWgIQhY" frameborder="0" allowfullscreen></iframe> I've already pulled all the posts from the Wordpress database into the new database. Just looking for how to process the links in the new html layout. EDIT...after putting in the raw links...I see that this site already does what I want to achieve...so had to put them in code tags! Thanks! Edited August 4, 2015 by bschultz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.