normal manşet sistemlerinde zaten en son eklenen haberler çıkar hocam. Temanızın yönetici paneli varsa bir kurcalamanızı tavsiye ederim.
Yoksa index.php'de
<div class="slider-wrapper clearfix">
<div class="slider">
<div class="items"> .... </div> </div> </div> arasında bir yerlerde wp meta etiketi olmalı
panelinde son yazilar ile ilgili yok sadece kategori secimi var.
anlamadim ben
index.php burada hocam
<?php
$stage_option = ($super_options[SN."_stage_option"]!="") ? $super_options[SN."_stage_option"] : "Slider";
$sidebar = ($super_options[SN."_home_layout"]!="") ? $super_options[SN."_home_layout"] : "full-width";
$items_limit = $super_options[SN."_posts_item_limit"];
$items_limit = (!$items_limit) ? 6 : $items_limit ;
get_header();
?>
<div class="skeleton clearfix blog ">
<div class="content clearfix <?php echo $sidebar; ?>">
<div class="two-third-width">
<div class="slider-wrapper clearfix">
<div class="slider">
<div class="items">
<?php
$i=0; $j =0;
$section_counter = 1;
$query = new WP_Query();
$query->query('cat='.$super_options[SN."_home_slider"]."&posts_per_page=".$super_options[SN."_home_posts"]);
while ($query->have_posts()) : $query->the_post(); $more = 0; if($i==4) { $i =0; $section_counter++; } ?>
<?php
if($i==0)
echo '<ul><!-- Start of UL -->';
echo "<li> <h3 class=\"custom-font\"><a href=\"". get_permalink()."\"> ". get_the_title()."</a></h3>
<p>". $helper->getShortenContent(90,strip_shortcodes( strip_tags( get_the_content() )))."</p>
<div class=\"hide\">";
if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : /* if post has post thumbnail */
echo "<div class=\"image\">";
$id = get_post_thumbnail_id();
$ar = wp_get_attachment_image_src( $id , array(9999,9999) );
echo $helper->imageDisplay( $helper->getMUFix($ar[0]) , 180 , 295 , false , get_permalink() , true , '' ,'' , false );
echo "</div><!--image-->";
endif;
echo " <h2 class=\"custom-font\"><a href=\"".get_permalink()."\">". $helper->getShortenContent(60,strip_shortcodes( get_the_title() )) ."</a></h2>
<span>".get_the_time("F j, Y")." - ";
comments_number( 'No Comments', '1 Comment', '% Comments' );
echo "</span> <p>". $helper->getShortenContent(200,strip_shortcodes( strip_tags( get_the_content() ) )) ."</p>";
echo " <span class=\"continue \"><a href=\"".get_permalink()."\">".__("Read more")." →</a></span>";
echo "</div>
</li>";
if($i==3)
{
echo "</ul> <!-- End of UL -->";
}
$i++;
$j++;
endwhile;
if($i<4) echo "</ul>";
$str = "<div class='bullets'>";
for($i=0;$i<$section_counter;$i++)
{
if($i==0)
$str = $str . '<a href="" class="active"></a>';
else
$str = $str . '<a href=""></a>';
}
$str = $str . "</div>";
?>
</div>
<?php echo $str; ?>
</div>
<div class="sliderpost">
</div>
</div>
<div class="clearfix">
<?php
$layouts = unserialize(get_option(SN."_layouts"));
if(!is_array($layouts) ) $layouts = array();
foreach($layouts as $layout)
{
switch($layout['widget_name'])
{
case 'three-columns' :
$ids = explode(":",$layout['category_id']);
echo "<div class='clearfix posts-section-wrapper'>";
for($i=0;$i<3;$i++)
{
if($i==2) $f = true; else $f = false;
showPostWidget($ids[$i],$f);
}
echo "</div>";
break;
case 'posts-image' : showFeaturedPosts($layout['category_id']);
break;
case 'full-accordion' : showFullAccordion($layout['category_id']);
break;
}
}
?>
</div>
</div>
<?php wp_reset_query(); if($sidebar!="full-width") : ?>
<div class="sidebar" id="sidebar"><!-- start of one-third column -->
<?php
$dsidebar = $super_options[SN."_home_sidebar"];
if ( trim($dsidebar)!="" )
dynamic_sidebar ($dsidebar);
else
dynamic_sidebar ("Blog Sidebar");
?>
</div><!-- end of one-third column -->
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>