Hello guys and girls : )
In my template videoflick I have this file:
videoflick/featured-content.php
Evrything is ok but it shows all new posts in sidebar and I just want it to show 5 to 7 most popular posts, do you know how can I do that, here is code from this file:
<div id="featured" style="display: <?php echo get_option('featured_side_show_hide'); ?>;">
<h3 class="featured"><?php $sidetitle = get_option('featured_side_title', $sidetitle = true); ?><?php if($sidetitle !== '') { ?><?php echo $sidetitle; ?><?php } else { echo 'Popularne Filmy:'; } ?></h3>
<?php query_posts('category_name='.get_option('featured_side_category') . '&showposts='.get_option('featured_side_count')); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="featuredpost">
<a href="<?php the_permalink() ?>" rel="bookmark" title="OglÄ…daj Online <?php the_title_attribute(); ?>"><img src="<?php echo get_thumbnail($post->ID); ?>" alt="<?php the_title(); ?>" /></a>
<h4 class="truncate-side-title"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_title2('', '...', true, '20') ?></a></h4>
<?php the_content_rss('', TRUE, '', 22); ?>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
</div>
Thanks in advence !