Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sagunn

    (@sagunn)

    Funny, minutes after asking I think I found a solution! I edited home.php in the theme directory per these instructions:
    http://www.web2feel.com/how-to-show-pages-instead-of-posts-on-the-slider/

    Here’s my updated code…I decided to comment out the check for number of posts and category, etc.

    <?php /********* Slider Section. *********/ ?>
    
    				<div id="iview">
    
    					//<?php
    					//	if ( ! isset( $options['leaf_slider_cat']) || $options['leaf_slider_cat'] == -1 ) {
    							$args = ( array( 'posts_per_page' => 5, 'post__not_in' => get_option( 'sticky_posts' ) ) );
    					//	} else {
    					//		$args = ( array( 'posts_per_page' => 5, 'category__in' => $options['leaf_slider_cat'], 'post__not_in' => get_option( 'sticky_posts' ) ) );
    					//	}
    					//?>  
    
    					<?php $loop = new WP_Query('post_type=page&orderby=menu_order'); ?>
    
    					<?php while ( $loop->have_posts ()) : $loop->the_post(); ?>
    
    						<?php $no_duplicates[] = get_the_ID(); ?>
    
    						<a href="<?php the_permalink(); ?>" data-iview:image="<?php echo leaf_get_post_image( null,null,true,null, 'slider' ); ?>">
    							<span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
    							<span class="iview-caption caption1" data-x="15" data-y="258" data-transition="expandleft"><?php echo '<p>' . wp_trim_words( get_the_excerpt(), 35, null ) . '</p>'; ?></span>
    						</a>
    
    					<?php endwhile; ?>
    
    				</div><!-- #iview -->
Viewing 1 replies (of 1 total)