Slider/text combination plugin

I don’t know of a plugin, but you could do it yourself.

Structure :

  • Each slide is a post.
  • Each post contains text and one image (uploaded throught media uploader)
  • To target the proper post, you could use differents techniques, the simpleiet is to use a category i.e. : “slider”.

Where you want to use the slider, I propose to use something like :

function display_sliders() {

    // get posts 
    $args = array (
        'category_name' => 'slider',
        'numberposts' => 3, // adapt the number to your needs
    );
    // fectching data
    $posts_sliders = get_posts( $args );

    foreach ( $posts_sliders as $post_slider ) {

    // we will need a image associated to the post
    $args = array (
        'numberposts' => 1,
        'post_parent' => $post_slider->ID, //the way we have image child of the post
        'post_type'   => 'attachment',
        'post_mime_type' => 'image'
    );

    $image_slide = get_post ( $args );

    // change ouput according to the requisite of plugin
    echo '<div class="slider-wrapper">';
    echo '<div class="slider-texte">';
    echo '<h2 class="slider-title">' . $post_slider->post_title . '</h2>';
    echo '<p class="slider-body">' . $post_slider->post_content . '</p>';
    echo '</div>';

    // Second div for image
    echo '<div class="slider-image">';
    echo wp_get_attachment_image( $image_slide->ID, 'medium'); // change size in media to fit the correct size
    echo '</div>'; 
    echo '</div>';

    }

}

After that, you will need to find a jQuery plugin to does the trick, include it into your theme, and maybe adapt the output details, but this is a short bit of code to see if this logic could help you to start something.

I use this kind of fully customisable slider a lot and clients find is pretty easy to use.