• 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])) {
    ?>

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