Help with ‘Most Commented’ and post images plugin….
-
Hi everyone
I’m working on a new WordPress theme for my blog. It uses the https://guff.szub.net/post-image
plugin for pulling up an image with each post.However, I’m now trying to incorporate this feature with a ‘Most Commented’ plugin, i.e. taking something like https://mtdewvirus.com/code/wordpress-plugins/ and some how fitting the call to the database for the post_image() somewhere in the script.
Or, maybe we could re-do the following script, which I already use for a list of recent posts, so that it calls the three most commented posts, rather than the three most recent…
<?php $imgposts = new WP_Query('showposts=3'); if($imgposts->have_posts()) : while($imgposts->have_posts()) : $imgposts->the_post(); ?> <ul class="recentposts"> <li class="recent_post clearfix" id="post-<?php the_ID(); ?>"> <div class="posttitle clearfix"> <a class="postimagelink" href="<?php the_permalink(); ?>"><img alt="Post icon" class="postimage" src="<?php post_image('shared/images/post_default.png', false, false); ?>" width="35" height="35" /></a> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <p class="meta"> Posted <?php the_date('d-m-y'); ?> under <?php the_category(' & ') ?> | <?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)', 'commentlink', ''); ?> </p> </div> </li> </ul> <?php endwhile; endif; ?>
If you can help me with this – you’re a superstar!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Help with ‘Most Commented’ and post images plugin….’ is closed to new replies.