I have a photo of the day feature on my website.
this uses js to pull the photo from the server.
I am recreating some of my site using plug-ins and try as I might I cannot get this feature to work.
I know it works if placed directly on the webpage but If placed using a plugin it creates the following code
document.write('<img src="plugins/general" + imlocation + imagefolder + image[imagenumber] + '">');
it puts in the "plugins/general" when I view the page source from the website (this is where the plugin is sited) but should be as the code below
document.write('<img src="' + imlocation + imagefolder + image[imagenumber] + '">');
Thanks in advance