Support » Plugin: Select Featured Posts » [Plugin: Select Featured Post] integrate post thumbnails

  • I like your plugin! 🙂 I use the widget in the sidebar and extended the code!

    function widget($args, $instance) {
    ..
            <ul>  <?php
              while ($r->have_posts()) : $r->the_post(); ?>
                <li style="margin-bottom:10px;"><a href="<?php the_permalink() ?>" title="<?php echo esc_attr(get_the_title() ? get_the_title() : get_the_ID()); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?> <br /> <?php the_post_thumbnail(thumbnail); ?> <br /> <?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) );
              endwhile; ?> </a> </li>
            </ul> <?php
    ..

    So there is now the post thumbnail and the number of comments! 🙂

    http://wordpress.org/extend/plugins/select-featured-posts/

  • The topic ‘[Plugin: Select Featured Post] integrate post thumbnails’ is closed to new replies.