میخواستم بگید چطور میشه که اسلایدر بالایی سایتم که شامل آخرین فیلم ها و سریال های سایت میشه به طور خودکار عوض و آپدیت بشه. این هم کد صفحه last.php هستش که مربوط به این اسلایدر است:
<div class="pos-fakv-awnjgxs">
<div class="top">
<div class="tabbed-tabs-wrap">
<ul class="tabs tm-tabs">
<span class="icon-speed-dast-re"></span>
<li class="tab music active" data-target="#tab1"><span class="icon-music icon-nav-last-p" ></span>آخرين آهنگ ها</li>
<li class="sep"></li><li class="tab album" data-target="#tab2"><span class="icon-headphones icon-nav-last-p" style="color:#2c85c0"></span>آخرين آلبوم ها</li>
<li class="sep"></li><li class="tab series" data-target="#tab3"><span class="icon-film icon-nav-last-p" style="color:#cc4032"></span>آخرين سريال ها</li>
<li class="sep"></li><li class="tab film" data-target="#tab4"><span class="icon-facetime-video icon-nav-last-p" style="color:#e8a03a"></span>آخرین فیلم ها</li>
<li class="sep"></li><li class="tab video" data-target="#tab5"><span class="icon-camera icon-nav-last-p" style="color:#8844b7"></span>آخرین موزیک ویدیو ها</li>
</ul>
</div>
<div class="tabbed-body-wrap">
<div style="display: none;" class="tab-content" id="tab1">
<div class="tab-slider">
<ul>
<?php query_posts('showposts=3&cat=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo catch_that_image(); ?>&h=380&w=260&zc=1" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" height="380" width="260">
<div class="caption slow-transition">
<span class="song"><?php the_title(); ?></span>
</div>
</a>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</div>
<div style="display: none;" class="tab-content" id="tab2">
<div class="tab-slider">
<ul>
<?php query_posts('showposts=3&cat=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo catch_that_image(); ?>&h=380&w=260&zc=1" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" height="380" width="260">
<div class="caption slow-transition">
<span class="song"><?php the_title(); ?></span>
</div>
</a>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</div>
<div style="display: none;" class="tab-content" id="tab3">
<div class="tab-slider">
<ul>
<?php query_posts('showposts=3&cat=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo catch_that_image(); ?>&h=380&w=260&zc=1" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" height="380" width="260">
<div class="caption slow-transition">
<span class="song"><?php the_title(); ?></span>
</div>
</a>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</div>
<div style="display: none;" class="tab-content" id="tab4">
<div class="tab-slider">
<ul>
<?php query_posts('showposts=3&cat=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo catch_that_image(); ?>&h=380&w=260&zc=1" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" height="380" width="260">
<div class="caption slow-transition">
<span class="song"><?php the_title(); ?></span>
</div>
</a>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</div>
<div style="display: none;" class="tab-content" id="tab5">
<div class="tab-slider">
<ul>
<?php query_posts('showposts=3&cat=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<li>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo catch_that_image(); ?>&h=380&w=260&zc=1" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" height="380" width="260">
<div class="caption slow-transition">
<span class="song"><?php the_title(); ?></span>
</div>
</a>
</li>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<div style="clear:both"></div>
<div style="border-top: 1px solid #E7E7E7"></div>
لطفا کمک کنید
این هم آدرس سایتم:
http://www.datacamp.ir