Title: Recent Images Code
Last modified: August 21, 2016

---

# Recent Images Code

 *  [lollypop689](https://wordpress.org/support/users/lollypop689/)
 * (@lollypop689)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/recent-images-code/)
 * So I am currently having trouble with a code that is supposed to show recent 
   images. I have a custom theme, but the person who made it is currently not responding
   to any of my messages that I am sending her. My site is:
    onedirectionclub.net.
   At the top of the page there are boxes that say ‘Recent Image’ The code for that
   section is:
 *     ```
       <!-- RECENT IMAGE CODE HERE -->
       <center><a href="#"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/changeimg.gif" /></a></center>
       <!-- STOP HERE -->
       ```
   
 * I am wondering if anyone knows how to change it so I can show pictures?

Viewing 1 replies (of 1 total)

 *  [Tjgstudios](https://wordpress.org/support/users/tjgstudios/)
 * (@tjgstudios)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/recent-images-code/#post-4086761)
 * try changing
    <?php bloginfo(‘stylesheet_directory’); ?> to <?php bloginfo(‘template_directory’);?
   > That may fix your issue. Good Luck!
 * EDIT:
    Nevermind I missread what you were asking actually, that’s my bad. So 
   if you have a specific naming convention for your images you’d have to replace/
   images/changeimg.gif with /images/(nameofimage) You could also have them stored
   on your database and call them by their ID but you’d have to get them uploaded
   and target the array of them, which is a bit more work, but you may want to look
   into it since you’re looking for recent images and those will probably be uploaded
   somehow.

Viewing 1 replies (of 1 total)

The topic ‘Recent Images Code’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Tjgstudios](https://wordpress.org/support/users/tjgstudios/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/recent-images-code/#post-4086761)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
