Jump to content

Abandoning Wordpress...Need Help With Plugins


bschultz

Recommended Posts

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.