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!

Edited by bschultz
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.