0
내 꼬리말에 사용자 정의 포스트 유형을 타겟팅하는 스크롤식 뉴스 티커를 만들려고합니다. 여기에 자바 스크립트와 내 div 아래 있습니다. 감사.게시물 제목, 이미지 및 발췌 부분이있는 가로 스콜링 티커 만들기
$('.ticker-wrapper').cycle({
fx: 'scrollHorz',
continuous: 1,
easeIn: 'linear',
easeOut: 'linear'
});
<div class ="ticker-wrapper">
<!--pulling in custom post type "Ticker"-->
<article class="ticker">
<?php $recentPosts = new WP_Query("showposts=8&post_type=Ticker");
while($recentPosts->have_posts()):$recentPosts->the_post();?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('ticker-img', array('class' => 'ticker-image'));?></a>
<h2 class="ticker-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="ticker-excerpt"><?php the_excerpt('ticker_length'); ?></p>
</article> <!--end ticker-->
<?php endwhile; wp_reset_query(); ?>
</div> <!--end ticker-wrapper-->
그럼 뭐가 궁금한가요? – AndyWarren
글쎄, 내 코드가 전혀 작동하지 않습니다. 어떻게하면 스크롤을 작동시킬 수 있습니까? – amespower
아래 나의 대답을 참조하십시오. – AndyWarren