Forum Replies Created

Viewing 2 replies - 76 through 77 (of 77 total)
  • Figured it out. I inherited this site so I’m learning this theme. To add more slides than 3 you need to go to header.php > modify :
    <?php query_posts( 'posts_per_page=3&post_type=sliders&order=DSC' ); ?>
    to read:
    <?php query_posts( 'posts_per_page=4&post_type=sliders&order=DSC' ); ?>
    You can also sort in descending (DSC) or ascending order (ASC).

    For both changes you will need to make the adjustment three times as the query_posts() functions shows three times in my theme. Once each for the image, caption, and “paging” functions which should all be set to the same values.

    Tough to find proper documentation / happy to contribute!

    <?php if (is_front_page()) { ?>
    
          <div id="slider">
            <div class="main_view">
                <div class="window">
                    <div class="image_reel" style="width: 2790px;">
                    	<?php query_posts( 'posts_per_page=4&post_type=sliders&order=DSC' ); ?>
                        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                        <a>"><?php the_content();?></a>
    					<?php endwhile; ?>
                       <?php endif; ?>
                    </div>
                       <?php wp_reset_query(); ?>
                    <div class="descriptions">
                    	<?php query_posts( 'posts_per_page=4&post_type=sliders&order=DSC' ); ?>
                        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                        <div class="desc"><p><?php the_title(); ?></p></div>
    					<?php endwhile; ?>
                       <?php endif; ?>
    				</div>
                       <?php wp_reset_query(); ?>
                    </div>
    
                <div class="paging">
                    	<?php query_posts( 'posts_per_page=4&post_type=sliders&order=DSC' ); ?>
                        	<?php $i = 1; ?>
                        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                    		<a>" href="<?php bloginfo('url'); ?>/#"><?php ?></a>
    					<?php endwhile; ?>
                       <?php endif; ?>
                </div>
                       <?php wp_reset_query(); ?>
            </div> }?>

    I have the same issue. Even though I can create a forth slide post, it never renders the slider with more than 3 slides (the original three that where posted and the new one omitted). The new slide has identical format etc.

Viewing 2 replies - 76 through 77 (of 77 total)