Hello everybody, its my first time here and I need some help please :'(
I need to take images from "upload files" directory, my solution was:
<img src="<?php echo get_bloginfo('siteurl'); ?>/files/YEAR/MONTH/ImageIneed.thumbnail.jpg" width="XX" height="XX" alt="whatever" />
But not always is going to be the same month and the same year I would like to know if exist a way to get the Image I need (will always have the same name and extension jpg) but is going to be uploaded in diferent times.
I need soemthing like
<img src="<?php echo get_bloginfo('files'); ?>/ImageIneed.thumbnail.jpg" width="XX" height="XX" alt="whatever" />
is it possible?
Thank you :)
and sorry for my English.