WordPress.org

Support

Support » Plugins and Hacks » Multiple WP Rotator Sliders in one site

Multiple WP Rotator Sliders in one site

  • Jason Paul
    Member

    @jasontrasaterracom

    I was just wondering if there’s a simple way to have a client create their own sliders so they can embed them inside their posts on their own. Something that works more like Slidedeck. I’m more interested in WP Rotator because it works with Flex Slider so you can use a slider in Responsive design sites. Slidedeck, as I understand it, does not support this. But the advantage of Slidedeck is that clients can generate their own sliders on the fly without developer support. Just wondering.

    http://wordpress.org/extend/plugins/wp-rotator/

Viewing 1 replies (of 1 total)
  • Christine Rondeau
    Volunteer Forum Moderator

    @crondeau

    What I normally do is use the wp_get_attachment_image function.

    In my theme file, I normally use something like:

    <ul>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post();    
    
     $args = array(
       'post_type' => 'attachment',
       'numberposts' => -1,
       'post_status' => null,
       'post_parent' => $post->ID
      );
    
      $attachments = get_posts( $args );
         if ( $attachments ) {
            foreach ( $attachments as $attachment ) {
               echo '<li>';
               echo wp_get_attachment_image( $attachment->ID, 'full' );
               </li>';
              }
         }
    
     endwhile; endif; ?>
    </ul>

    Then I just convert the list to whatever is needed for the slider to work. So all the client has to do is upload images and attach them to a post. The only thing that you need to be careful is that the client needs to know what sizes to upload. But if you want, you can add an extra check and ensure that he/she has uploaded the right size and format.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple WP Rotator Sliders in one site’ is closed to new replies.