Show posts in a category in another column
-
[code]
<div class="webpick">
<?php
{
query_posts('cat=6');
}
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/im/site.gif" alt="" width="122" height="92" />
<?php echo c2c_get_recent_custom('name', 'name:
'); ?>
<?php echo c2c_get_recent_custom('url', 'url:
'); ?>
<?php echo c2c_get_recent_custom('country', 'country:
'); ?>
<?php echo c2c_get_recent_custom('designer', 'designer:
'); ?>
</div><br clear="left" />
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
</div>
[/code]
Why does this give me the same posts repeated when I have two different ones?
What did I do wrong?
Thanks
- The topic ‘Show posts in a category in another column’ is closed to new replies.