vtxyzzy on "Posts on home page"
June 4, 2010 by David Olsen
After seeing the code, I don’t think you need the setup_postdata.
To change the format of the categories, just add ‘, ‘ as a parameter as shown below:
$cats = get_categories('exclude='. $GLOBALS[ex_feat] . ',' . $GLOBALS[ex_vid]. ',' . $excluding );
foreach (array(1) as $cat) {
$the_query = new WP_Query('posts_per_page=5');
while ($the_query->have_posts()) : $the_query->the_post();
$do_not_duplicate = $post->ID;?>
<?php
$show = true;
foreach ( $duplicated as $test) { if ( $test == $post->ID) { $show = false; } }
$count++;
$duplicated[$count] = $post->ID;
if ($show) {?>
<div class="post-alt blog">
<p class="category"><span><?php the_category(', '); ?></span></p>
<?php woo_get_image('image',get_option('woo_thumb_width_mid'),get_option('woo_thumb_height_mid'),'thumbnail '.$GLOBALS['align_mid']); ?>






Comments
Facebook comments:
Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!