how to define the category ?
-
Hello,
well apparently the slideshow has a bug , i chose a category but it won’t work it keeps posting the latest posts.
how can i define what category to post in the style?
<div id="slider-holder"> <?php $featposts = get_option('feat_entries'); // Number of featured entries to be shown $ex_feat = get_cat_id(get_option('featured_category')); $the_query = new WP_Query('cat=' . $ex_feat . '&showposts=' . $featposts . '&orderby=post_date&order=desc'); ?> <div class="slider-shelf"></div> <span class="clicker"><?php _e('?????',woothemes); ?></span> <div class="shelf-content"> <?php $counter = 1; while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <span title="<?php the_title() ?>" class="<?php echo $counter; ?>"><?php woo_get_image('image','70', '50','thumbnail',90,get_the_id(),'img'); ?></span> <?php $counter++; ?> <?php endwhile; ?> <div class="shelf-title"> </div> </div> <?php $counter = 1; $slider_height = 270; $slider_height = get_option("woo_carousel_height"); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="slide slide-<?php echo $counter; ?> slide-full"> <a href="<?php the_permalink() ?>" title="<?php _e('???? ???????',woothemes); ?>" class="open"><?php woo_get_image('image','595', $slider_height,'full',90,get_the_id(),'img'); ?></a> <div class="slide-content slide-content-<?php echo $counter; ?>"> <div class="slide-content-height-<?php echo $counter; ?>"> <h3><?php the_title(); ?></h3> <p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p> </div> </div> <?php // woo_get_image('image','100', '75','thumbnail',90,get_the_id(),'img'); ?> </div> <?php woo_get_image('image','595', $slider_height,'full-mask full-mask-' . $counter,90,get_the_id(),'img'); ?> <?php $counter++; ?> <?php endwhile; ?> <div id="slider-nav"> <span class="slider-left"></span> <span class="slider-right"></span> </div> </div>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how to define the category ?’ is closed to new replies.