Slide show limit

Support Area Forums Foundation Slide show limit

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #3813
    Avatar photoJim Gordon
    Participant

    Is there a limit on the number of slides in a slide show? Some of the slides that I added do not show. The first 5 or so show nicely. Also, it would be very nice if we could use different slide shows on other pages.

    #3814
    Bill Robbins
    Moderator

    You can change the number of slides that show up by default. Here’s how to do it:

    1) Go to the appearance section of your WordPress control panel and select edit to open up the theme editor.
    2) From the list of files on your right, choose home.php.
    3) Look for this spot:

    <?php $loop = new WP_Query( array( ‘post_type’ => ‘slide’, ‘posts_per_page’ => 5, ‘orderby’=>’menu_order’, ‘order’=>’ASC’ ) ); ?>

    where it says ‘posts_per_page’ => 5 change the 5 to the number of slides you’d like to have.

    4) Save your changes.

    I wouldn’t recommend including too many more than that as it will being to affect the page load time. Images tend to be larger files and that can impact how quickly your home page loads.

    You can add a slideshow to a post using the “Gallery” post template. It will look like this post from the demo http://www.organizedthemes.com/try/foundation/2010/12/06/sample-gallery-post/

    To use it, first you’ll need to set the size of your images. Go to the settings section of your control panel and select media. In the options for the medium size images, use 630 as the maximum width and 500 pixels as the maximum height. Save your changes.

    Next upload all the images you’d like to include in your post slideshow on that post. You don’t need to insert them into the post. Next select the “Gallery Post” post template from the post template drop down menu (it’s in the right hand column below the publish and categories boxes). Then just publish your post.

    The gallery post template, uses the built-in WordPress gallery to create the slideshow which is why you don’t need insert the images, but that’s also why you have to upload the images on that particular post.

    If you want to use images you’ve already uploaded, you’ll need to use the “Regenerate Thumbnails” plugin to resize those images appropriately.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Slide show limit’ is closed to new replies.