The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Thumbnail carousel/scroller/slider (1 post)

  1. MrJanuszJasinski
    Posted 3 years ago #


    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 http://www.themepunch.com/codecanyon/showbiz/ or http://caroufredsel.dev7studios.com/index.php ideally. Any plugins available or tutorials?



Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by MrJanuszJasinski
  • This topic is not resolved
  • WordPress version: 3.4.2