Return to Snippet

Revision: 28718
at July 13, 2010 06:31 by screamwork


Initial Code
<ul>
	<?php query_posts('orderby=comment_count&posts_per_page=>5');
	if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
		<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?> (<?php comments_number('0','1','%'); ?>)</a></li>
		<?php endwhile; ?>
		<?php else : ?>
		<li>Sorry, no posts were found.</li>
	<?php endif; ?>
</ul>

Initial URL

                                

Initial Description

                                

Initial Title
most commented Posts in WP

Initial Tags

                                

Initial Language
PHP