Title: Modularity-Lite Slideshow Error
Last modified: August 19, 2016

---

# Modularity-Lite Slideshow Error

 *  [ahjjharris](https://wordpress.org/support/users/ahjjharris/)
 * (@ahjjharris)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/modularity-lite-slideshow-error/)
 * I searched and couldn’t find another post involving this issue, so I’m creating
   this one.
 * I’m using modularity-lite, with the slideshow turned on, and I want it to grab
   the last 5 photos from posts posted. According to the theme all I have to do 
   to accomplish that is remove “-static” from slideshow-static.php in index.php
   and it’ll revert to slideshow.php.
 * I did that and then received this error message
 * Parse error: syntax error, unexpected $end in wp-content/themes/modularity-lite/
   library/apps/slideshow.php on line 21
 * The code for slideshow.php is:
 * <?php //Load Variables
    $slideshow_state = get_option(‘T_slideshow_state’); ?
   >
 * <?php
    if ($slideshow_state == ‘On’) {?>
 * <ul id=”portfolio”>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post();?
   > <?php // this gets the image filename $values = get_post_custom_values(“slideshow”);//
   this checks to see if an image exists if (isset($values[0])) { ?>
    - 
    - <?php } ?>
       <?php endwhile; else: ?> <p><?php _e(‘Sorry, no slideshow images
      are available’); ?></p> <?php endif; ?>
    - Line 21 being <?php endif; ?>
    - I haven’t edited this at all, and yet it’s not working. What should I do to
      grab the last 5 photos uploaded into posts into the slideshow?

The topic ‘Modularity-Lite Slideshow Error’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [ahjjharris](https://wordpress.org/support/users/ahjjharris/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/modularity-lite-slideshow-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
