Jump to content

Wordpress & PHP


Recommended Posts

Ok so ive got someone on the Radiodj forums asking my how he would get Recently played showing on his WP site.

 

Totally Clueless on this one if someone can point me to the Basics im sure ill be able to show this guy how he does it.

 

Are there any WP plugins needed or special code? Really dont want to have to tell him to use Iframes.

 

Any help on this would be great Because im new to WP and could do with knowing this as well.

 

Thanks in advance

My Blog https://djgarybaldy.blogspot.com

User of RadioDJ FREE radio playout software since 2010.

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

 

 

Link to comment
Share on other sites

I have the Script for PHP to show the Recently played tracks know all the settings for sql etc .... just Dont know how Wordpress and PHP intergrate.

My Blog https://djgarybaldy.blogspot.com

User of RadioDJ FREE radio playout software since 2010.

How to Install RadioDJ: https://djgarybaldy.blogspot.com/2020/08/how-to-install-radiodj-free-radio.html

RadioDJ is my most FAVOURITE piece of software EVER

 

 

Link to comment
Share on other sites

If the site is hosted on wordpress (wordpress.com) then i don't think they allow you to add your own php coding. If it is your own website with wordpress installed on it then the code can be insterted into either header.php , footer.php or sidebar.php in the templates folder (wp-content/themes/temlatefoldername/) to make it display on all pages.

 

wordpress templates are built in php and most of the time very easy to edit.

 

for example the index page is like this:

 

include header (this will include all content in your header which is used on every page unless you tell it to do otherwise)

all index page content , php html whatever

include sidebar (this will include all content in your sidebar which is used on every page unless you tell it to do otherwise)

include footer (this will include all content in your footer which is used on every page unless you tell it to do otherwise)

 

Hope that helps,

Matt

Link to comment
Share on other sites

How about this

 

1.create a new file called recent_tracks.php , insert your recent tracks code and upload it to your server

2.find the theme folder for the template you are currently using (yourdomain.com/wp-content/themes/)

3.open sidebar.php

4.insert <?php include "path/to/file/recent_tracks.php"; ?> into sidebar.php and re upload.

 

 

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...