WordPress.org

Ready to get started?Download WordPress

Forums

Select Featured Posts
[Plugin: Select Featured Post] integrate post thumbnails (1 post)

  1. fabske
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by fabske
  • This topic is not a support question
  • WordPress version: 3.0.1