Support » Plugins » How to hard code a folder name

  • Resolved Jack Jackson


    I have found the perfect plugin that will show images from the default WordPress gallery. How can I change to code to point to a different folder? The problem is that I do not speak PHP. The linked file is where I believe the default location is specified.

Viewing 8 replies - 1 through 8 (of 8 total)
  • @jakjackson – First of all, you didn’t link any files. Second of all, the plugin pulls information from the database directly, not from the file system. If you want it to instead pull from the file system, all you have to do is ask and I can put it on my to-do list.

    Hi Eric,

    Thank you for such a rapid response. I found a widget last night that I was able to use with no manipulation. I intended to remove my post but it was late and slipped my mind. I apologize for not removing it and I thank you for your offer of assistance.




    I install your plugin, however the images doesn’t appear. I try to see where is the plugin looking for, (in the uploads) there is a lot of pictures and no one is showing.

    My question is:

    Is there a way to indicate in the php code a folder to look for the images I want. Or to change the actually route or indicate another source? I am not a master in php, but if you can indicate me where to edit I will appreciate.

    This because,


    Jack Jackson


    Hi Mandrake05,

    Thanks for your response. I resolved the issue by using a different plugin. I’m all set and the site in now in production. Thank you kindly.

    Jack Jackson

    Hi there,

    Love the widget but I have two questions.

    1. Is it possible to point the widget at a certain file on the FTP from which to take the pictures? Which piece of code do I change to do that?

    2. Is it possible to change the speed of scrolling? Or, even better, to land on a different picture each time someone lands on the website?

    @ Mandrake05 – what plug in did you find as an alternative.

    Thanks for the support.


    1. No. The current plugin pulls from the collection of attachments in the database, not from a certain file or folder on the server. That will be coming in a future version.

    2. There’s no way to control this just yet. But if you want, you can edit the code directly. The speed of the rotation is controlled in riw.js on line three. You’ll see this line:

    setInterval( "slideSwitch()", 5000 );

    5000 in this case means 5 seconds. You can change that to whatever you want. 10 seconds would be 10000, for example.


    The plugin I found as an alternative is here:

    Easy to understand, just be sure all the images have the same size you will use in the sidebar or place you want it. Have different efects, you can add the time and link. It taker the images form the database, so I make a folder for every one add.

    Just write the url and get ready.



    Great plugin. Realizing that the information is pulled from the database, is there a way to limit what extensions are pulled? As for the response to the OP, being able to select what folder images are pulled from would be a great addition down the road.



Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to hard code a folder name’ is closed to new replies.