WordPress.org

Ready to get started?Download WordPress

Forums

Jquery cycle images + captions (4 posts)

  1. Lars M
    Member
    Posted 5 years ago #

    Using Malsup' Jquery cycle with the latest ver. of WordPress.
    I'm using this php code to put the images into the cycling box:

    $args = array(
    'post_type' => 'attachment',
    'numberposts' => -1,
    'post_status' => null,
    'post_parent' => null, // any parent
    );
    $attachments = get_posts($args);
    if ($attachments) {
    foreach ($attachments as $post) {
    setup_postdata($post);
    the_title();
    the_attachment_link($post->ID, true);
    the_excerpt();
    }
    }

    but that makes it a slideshow with caption, image, caption, image
    and alls I want is the image displayed w/ the caption. Any help.
    Thanks in advance!

  2. Lars M
    Member
    Posted 5 years ago #

    I already tried taking both the_title(); and the_excerpt(); out.

    Probably didn't explain that right..
    I want the cycle to display each image WITH the description or title,
    but right now it cycles through the images and the title.

  3. Lars M
    Member
    Posted 5 years ago #

    Actually I think I could fix this if I just knew how to get the alt tag for the images and put this in a different div. Could anyone please help me with this?

  4. noelgreen
    Member
    Posted 4 years ago #

    I'm wanting to do the same thing. Did you figure this out?

Topic Closed

This topic has been closed to new replies.

About this Topic