WordPress.org

Support

Support » How-To and Troubleshooting » Thumbnail carousel/scroller/slider

Thumbnail carousel/scroller/slider

  • Hi,

    I have a custom post type of “artist” where there is an “advanced custom field” (plugin) of type “relationship” linking to another custom post type of “video” where it has a custom field of a YouTube ID

    Fairly standard and everything pulls back fine using the below:

    <?php
    
    $posts = get_field('video');
    
    if( $posts ): ?>
      <?php foreach( $posts as $post):?>
      <?php setup_postdata($post); ?>
      <div class="artist-videos"><a href="<?php the_permalink(); ?>">
        <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'strip-thumb' ); } else {echo '<img src="someotherimage.jpg"/>';} ?>
        <br/>
        <?php the_title(); ?>
        </a></div>
      <?php endforeach; ?>
      <?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?>
      <?php endif;?>

    However what I would like is a scroller/slider/carousel that displays the thumbnail (or backup) with maybe 4 posts a time. If there are more than 4 related videos, there is then scrolling available to go through the remainder of the related videos.

    Something like http://www.themepunch.com/codecanyon/showbiz/ or http://caroufredsel.dev7studios.com/index.php ideally. Any plugins available or tutorials?

    Thanks,

    JJ

  • The topic ‘Thumbnail carousel/scroller/slider’ is closed to new replies.