WordPress.org

Support

Support » Plugins and Hacks » Jquery cycle images captions

Jquery cycle images captions

  • Lars M
    Member

    @hrstuks

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Lars M
    Member

    @hrstuks

    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.

    Lars M
    Member

    @hrstuks

    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?

    noelgreen
    Member

    @noelgreen

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Jquery cycle images captions’ is closed to new replies.