WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail carousel/scroller/slider (1 post)

  1. MrJanuszJasinski
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

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