Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7638157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:06:20+00:00 2026-05-31T08:06:20+00:00

Im trying to make a pager for my image cycling using this plugin: http://jquery.malsup.com/cycle/pager3.html

  • 0

Im trying to make a pager for my image cycling using this plugin:
http://jquery.malsup.com/cycle/pager3.html

but even tho it looks like Im doing it right, my pager wont work. Here is my code:
    /////////////
    // This is my pager on the left side of my slideshow
    /////////////
        <ul class="imageList">
            <?php foreach ($imgs as $img) : ?>
            <li>
                <a href="#">
                    <img src="<?php echo $img[0]; ?>" height="64" width ="64" alt="<?php echo $title; ?>" />
                </a>
            </li>
            <?php endforeach; ?>
        </ul>
    /////////////
    /// here is the slider    
    /////////////
    <?php $imgs = get_post_images(get_the_ID(), 'full'); ?>
    <div class="imageCycler nextImage">
        <?php foreach ($imgs as $title => $img) : ?>
        <div>
            <img src = "<?php echo $img[0]; ?>" alt = "<?php echo $title; ?>" />
            <p class="imageInfo">                       
                <?php echo $img[3]; ?>                  
            <p>
        </div>
            <?php endforeach; ?>
    </div>
    /////////////
    /// here is my jquery 
    /////////////
       $(.'imageCycler').cycle({ 
            fx: 'fade', 
            speed: 300, 
            next: '.nextImage',
            prev: '.prevImage',          
            timeout: 0,
            pager: '.imageList', 
            pagerAnchorBuilder: function(idx, slide) { 
                // return selector string for existing anchor 
                return '.imageList li:eq(' + idx + ') a'; 
            } 
        });

This is a wordpress theme Im making so thats what all that php is, Im just pulling image attachments from a post and listing them out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:06:21+00:00Added an answer on May 31, 2026 at 8:06 am

    My bad, looks like cycle.js has two js files, one has basic functions and the other one (the one i didnt have) contains the pager functionality.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Malsup's cycle() JQuery plugin, and am trying to get it to display
I am trying to make a simple rollover image for this page - www.radioandweb.com.
I'm trying to make an image similar to one of these: http://www.danasoft.com/vipersig.jpg Not really
I am trying to use jQuery in order to make a pager for tumbs
I'm trying to make a dynamically sizable title banner, using fairly simple image tricks.
I'm trying to make this jquery drop down bar be on top at all
I'm trying to make a script that zooms into an image. This is the
I'm trying to make a jQuery image overlay on div hover function, but I'm
I am trying to make a click event with Javascript on this image button
I'm trying to make a page with an image meant for being loaded in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.