Support » Fixing WordPress » Repeating Categories

  • you can see the last 3 are duplicates

    http://www.spiritgrowth.com/?page_id=203

    <?php $getcats = get_categories('hierarchical=0&hide_empty=0&include=' . get_inc_categories("woo_cat_mid_")); ?>
    
    <?php foreach ( $getcats as $cat ) { ?>
    
    <?php query_posts("cat=".$cat->cat_ID."&showposts=" . get_option('woo_cat_list') ); if (have_posts()) : ?>
    								<?php while (have_posts()) : the_post(); $count++; ?>
    <div class="post">
    <h5 class="pink-links uppercase"><?php the_category(' ') ?></h5>
    								<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
    								<?php if ( get_option('woo_content_mid') == 'true' ) { the_content(); } else { the_excerpt(); } ?>
    								</div>
    								<?php endif; ?>
    
    <?php } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Repeating Categories’ is closed to new replies.