Support » Fixing WordPress » Thumbnail carousel/scroller/slider

  • MrJanuszJasinski



    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:

    $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"/>';} ?>
        <?php the_title(); ?>
      <?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 or ideally. Any plugins available or tutorials?



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