Bunu nereye yazmam gerekiyor hocam tam olarak?
Sliderdeki resimleri "resim" adlı özel alandan çekiyorsanız. Resim özel alanını kod içerisinden değiştirebilirsiniz.
numberposts=5&category=1
buradaki 1 kategorisini kendinize göre düzenleyin. Ayrıca
numberposts=5 te kaç adet yazı göstermek istiyorsanız onu belirler.
Aşağıdaki şekilde çalışması gerekiyor.
<div class="slider">
<div id="slider4" class="sliderwrapper">
<?php $postslist = get_posts('numberposts=5&category=1'); foreach ($postslist as $post) : setup_postdata($post); ?>
<div class="contentdiv" style="background: url(<?php
$values = get_post_custom_values("resim"); echo $values[0]; ?>) center left no-repeat">
<div class="conttitle"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
</div>
<?php endforeach; ?>
</div>
<div id="paginate-slider4" style="background:white">
<?php $postslist = get_posts('numberposts=5&category=2'); foreach ($postslist as $post) : setup_postdata($post); ?>
<a href="<?php the_permalink(); ?>" class="toc"><img alt="<?php the_title(); ?>" src="<?php
$values = get_post_custom_values("resim"); echo $values[0]; ?>" /></a>
<?php endforeach; ?>
</div>
<script type="text/javascript">
featuredcontentslider.init({
id: "slider4",
contentsource: ["inline", ""],
toc: "markup",
nextprev: ["", "Next"],
revealtype: "mouseover",
enablefade: [true, 0.1],
autorotate: [true, 4000],
onChange: function(previndex, curindex){
}
})
</script>
</div>