How to get my media’s URL with PHP ?
-
Hello everyone,
I have a little question ! I use a plugin to add simple sliders on my posts, nothing new. However, everytime I want to add a new picture to my slider, I need to manually write the title and URL of the said picture. This is a waste of time really, because these two values have already been registered when I uploaded the pictures in this very slider (from the media library of course).
They are the same.
A) Here’s the interface to edit a slider
B) And here’s what I get if I click on Add image Slide
So instead of writting everything everytime, I’d like to code a little something that could fill pic A fields for me. I know what to do in the plugin’s code, but first, I need to know how to get the required values from the Media library.
In short, I want to take the URL from B to put it in A !
I hope I’ve been clear ! Thank you folks
- This topic was modified 6 years, 10 months ago by .
- This topic was modified 6 years, 10 months ago by .
- This topic was modified 6 years, 10 months ago by .
- This topic was modified 6 years, 10 months ago by .
- This topic was modified 6 years, 10 months ago by .
- This topic was modified 6 years, 10 months ago by .
- The topic ‘How to get my media’s URL with PHP ?’ is closed to new replies.