Selamlar
Wp sitemde son eklenen videoları 5er 5er kaymak suretiyle göstermek istiyorum.
fakat 2 sorun yaşıyorum.
1. 5 olan video sayısı bazen yeni ekledikçe 4 e düşüyor
2. ilk 5 kayarken arkasından yenileri gelmiyor. Kayma işlemi bitene kadar bekliyor ki bu arada arkasında boşluk oluşturuyor buda çirkin görünüyor. Çünki marquee kodu ile kaydırıyorum.
Bu sorunları acil çözmem gerekiyor Ücretli / Ücretsiz acil yardımlarınızı bekliyorum şimdiden tşk ederim.
kullandığım kod ise bu
<div class="latestpart">
<h2>Yayın Akışı</h2>
<div class="latestvideos">
<marquee scrollamount="4" loop="0" width="650" height="150" scrolldelay="4" direction="right" onmouseover="this.stop()" onmouseout="this.start()">
<?php $recent = new WP_Query("showposts=4&orderby=date&cat=5"); while($recent->have_posts()) : $recent->the_post();?>
<div class="latestvideo">
<div class="latestname">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php $tit = the_title('','',FALSE); echo substr($tit, 0, 20); if (strlen($tit) > 20) echo " ..."; ?></a>
</div>
<div class="latestthumb">
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" width="120" height="90" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/noimage.gif" width="120" height="90" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
</div>
<div class="latestinfo">
<div class="postviews">
<?php echo time_ago(); ?>
</div>
<div class="postviews">
<?php if(function_exists('the_views')) { the_views(); } ?>
</div>
</div>
</div>
<?php endwhile; ?>
</marquee>
</div>
</div>
domain : evcilhayvanlar-tv.com