WordPress.org

Forums

WordPress slider only displaying 5 out of 6 images (8 posts)

  1. newellmultimedia
    Member
    Posted 1 year ago #

    Hey all,

    I've been updating images for a banner slider on a clients website. I think its WordPress's default one. Unfortunately only 5 of the 6 images are cycled through on the banner and I can't seem to get the 6th one working.

    I've tried recreating the single slide, re uploading the image, clicking 'Set feature image' - as I've seen suggested in similar problems, but none seem to be a fix for me.

    Wondering if anyone has had this issue or knows what might be going on. From what I can tell, the slide seems identical (in terms of settings) compared to the rest of the slides.

  2. Endlyss
    Member
    Posted 1 year ago #

    There may be a limit on how many slides the banner can take?
    May possibly get a URL to the page that you have the banner displaying on, please, so that I may dig around in the "view source" panel in my browser?

    Also check around in any options for the theme or plugin to see if there is a limit set anywhere.

  3. newellmultimedia
    Member
    Posted 1 year ago #

    I was wondering if there was a limit, but I haven't seen one in the options and I think previously there use to be 6 slides.

    URL: http://www.austeducationglobal.com.au/

    cheers

    [ No bumping please. ]

  4. Endlyss
    Member
    Posted 1 year ago #

    @newllmultimedia
    I apologize. I thought I'd be able to find something signifying if there was a limit or where the slides were being set from, but I cannot.

    The site seems to be using nivo-slider, though. From my past experience, nivo slider has been in an options panel on the dashboard in the bottom left. Are you adding the slides there? or do you guys have nivo-slider set up in a different way than I am used to?

  5. newellmultimedia
    Member
    Posted 1 year ago #

    No problems Endlyss.

    The slideshow does have an options panel in the left side bar. but It only has one option to see the different slides / edit them etc, and one to add a new slide, haven't seem any options for a slides limit. So in answer to your first question, yes, I am adding slides through its control panel. I'm not sure if its a Nivo-Slider, I doubt the client will know as it was set up by someone else.

    Also tried adding a 7th slide to the slider, but it still only showed 5 slides.

  6. Endlyss
    Member
    Posted 1 year ago #

    Strange.

    Looked at the source code again and it actually isn't using the plugin version. I am sorry that I mistook that and I realize now that someone set it up manually. It is either set up to get featured images from posts/pages based on a specified category, or the images are listed manually in the code itself.

    Quickest way to find out exactly how it is working is to dive into the code and look around.

    First, let's check out the header.php
    1. Head to appearance -> Editor
    2. List of files on the right hand side, click "header.php"
    3. Press "ctrl + f" on your keyboard to bring up a search by word prompt
    4. type in: id="showcase"
    5. If it finds it, please let me know what is between the <div id="showcase"> and a closing </div> a few lines down.
    6. If it does not find one, continue onto the next section.

    I noticed that there is a div called "homeGallery" so the next logical place would be to look in a home page template.
    1. Head to appearance -> Editor
    2. List of files on the right hand site, there should be something like "home.php" or "home-page.php"...if neither of these are present, try finding "blog.php"...if even that is not present, then try the "index.php"
    3. Press "ctrl + f" on your keyboard to bring up a search by word prompt
    4. type in: id="showcase"
    5. If it finds it, please let me know what is between the <div id="showcase"> and a closing </div> a few lines down.

  7. photocurio
    Member
    Posted 1 year ago #

    are all images .jpg files? sometimes other image formats break sliders and such.

  8. newellmultimedia
    Member
    Posted 1 year ago #

    I check out the source code. The showcase div is located in a wpzoom_showcase.php file and is also surrounded by a "homeGallery" div

    This code is below:

    <div id="homeGallery">
    <div id="showcase">

    <?php $loop = new WP_Query( array( 'post_type' => 'slideshow', 'posts_per_page' => $wpzoom_slideshow_num ) ); ?>

    <?php while ( $loop->have_posts() ) : $loop->the_post();

    unset($img,$link);
    if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
    $thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
    $img = $thumbURL[0];
    }
    else {
    $img = catch_that_image($post->ID);
    }

    if ($img) {

    $link = get_post_meta($post->ID, 'wpzoom_slide_url', true);
    $img = wpzoom_wpmu($img);

    if (strlen($link) > 1)
    {
    ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?h=300&w=960&zc=1&src=<?php echo $img; ?>" height="300" width="960" alt="" /><?php
    }
    else
    {
    ?><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?h=300&w=960&zc=1&src=<?php echo $img; ?>" height="300" width="960" alt="" /><?php
    }
    }

    endwhile; ?>

    </div><!-- end #showcase -->

    </div><!-- end .wrap -->
    </div><!-- end #homeGallery -->

    I'll also try your solution Photocurio and try other formats besides jpg, maybe png might be better.

Topic Closed

This topic has been closed to new replies.

About this Topic