• 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">&nbsp;</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)
  • Which slideshow or featured gallery plugin are you using? Did you check compatibility of such plugin in WordPress Plugin repository? If not compatible with current WordPress version in your install, then there is the probability that it would not work.

    Thread Starter theiceman6

    (@theiceman6)

    it’s a plug in with the theme

    how can i know what feature plugin is that ?

    You see there would be so many reasons why the code is not working. One of best people to ask then is the theme author – if the slideshow feature is part of the theme. Or search in Google for issues regarding the slideshow of your theme. Based on some code I see above you are using a Woo theme. They have free support for paid themes.

    Thread Starter theiceman6

    (@theiceman6)

    oh thank u they told me how to fix it and it’s working like a charm ??

    Hello Theiceman6,

    Can we know how to fix it please cause I have the same problem with my featured gallery by Woo. I chose a category but it won’t work it keeps posting the latest posts also.

    Thank u very much for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to define the category ?’ is closed to new replies.