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])) {
?>- ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img class=”slideshow” src=”<?php $key=”slideshow”; echo get_post_meta($post->ID, $key, true); ?>” alt=”<?php the_title(); ?>” />
<?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.