WordPress.org

Ready to get started?Download WordPress

Forums

WP Featured Content Slider
[resolved] Display posts with no thumbnail image - Suggested solution (1 post)

  1. lenasterg
    Member
    Posted 2 years ago #

    If you want to display also posts with no thumpnail without problem you can make the following change into the content-slider.php.
    Just replace line 140 with the following:

    <li>
                    <?php if ($thumb) { ?>
                        <div class="content_left">
                            <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2><?php echo cut_text_feat(get_the_content(), $limit, $points); ?>
                        </div>
                        <div class="img_right">
                            <a href="<?php the_permalink(); ?>"><img src="<?php echo $thumb; ?>" /></a>
                        </div>
                    <?php } else { ?>
                        <div class="content_left" style="width:90% !important">
                            <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2><?php echo cut_text_feat(get_the_content(), $limit, $points); ?>
                        </div>
                    <?php } ?>
                </li>

    Thanks for the great plugin
    Lena

    http://wordpress.org/extend/plugins/wp-featured-content-slider/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic