• Resolved eastpeekswest

    (@eastpeekswest)


    Hi guys,

    I have had f8-lite for a while now, but I still can’t get the slideshow working. I’ve been to this site:http://kirastackhouse.com/2009/03/15/f8-lite-wp-theme-how-to-get-images-to-appear/ and it helped me get my thumbnails showing, but right now my site only shows the default header. In all of my posts, I have the custom field of ‘image’ and ‘thumbnail’. The ‘image’ custom field is supposed to be what gets the picture for the slideshow. The pictures are the correct size as well.

    Here’s the code for the slideshow:

    <?php
    	$options = get_option('f8_theme_options');
    	$slideshow = $options['selectinput'];
    	$slideshow_cats = $options['cats'];
    	if ( $slideshow == 2 ) {
    ?>
    
    <!-- Begin minimal slideshow -->
    <?php query_posts('showposts=5&cat='.$slideshow_cats.''); $i=0; ?>
    	<div id="slideshow-posts">
    	<?php while (have_posts()) : the_post(); $i++; ?>
    			<div class="slide"><?php get_the_image( array( 'custom_key' => array( 'slideshow' ), 'default_size' => '950x425', 'width' => '950', 'height' => '425', 'image_class' => '', 'default_image' => 'wp-content/themes/f8-lite/images/default_header.jpg' ) ); ?></div>
    	<?php endwhile; wp_reset_query(); $i=0; ?>
    	</div>
    
    <?php } elseif ( $slideshow == 3 ) { ?>
    
    <!-- Begin slideshow with overlay -->
    <ul id="slideshow-nav"></ul>
        <?php $i = 0; $slideshow_query = new WP_Query("showposts=5&cat='.$slideshow_cats.'"); ?>
        <div id="slideshow-posts">
            <?php while ($slideshow_query->have_posts() && $i<=5) : $slideshow_query->the_post(); $do_not_duplicate = $post->ID; ?>
        		<?php $i++; ?>
    			<div class="slide">
    				<div class="slide-thumbnail">
    				<?php get_the_image( array( 'custom_key' => array( 'slideshow' ), 'default_size' => '950x425', 'width' => '950', 'height' => '425', 'image_class' => '', 'default_image' => 'wp-content/themes/f8-lite/images/default_header.jpg' ) ); ?>
    				</div>
    				<div class="slide-details">
    					<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    					<div class="description">
    					    <?php the_excerpt(); ?>
    					</div>
    				</div>
    				<div class="clear"></div>
    			</div>
    		<?php endwhile; wp_reset_query(); $i = 0; ?>
    	</div>
    
    <?php } else { echo '<!-- No slideshow -->'; } ?>

    Any help?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘f8-lite slideshow won't change picture’ is closed to new replies.