aşağıda kodlarını verdiğim sayfada görüntülenen post sayısını 3'den 4'e çıkartmak istiyorum. 3 ibaresini gördüğüm ilgili kodları 4 ile değiştirdim lakin yine olmadı nasıl yapabilirim?. Sliderle ilgimiz yok sadece recent post'u 3 den 4'e çıkartmak istiyorum sistem wordpress
<?php
/*
Template Name: Home
*/
?>
<?php get_header(); ?>
<?php
$image1 = get_option('tz_slider_1');
$image2 = get_option('tz_slider_2');
$image3 = get_option('tz_slider_3');
$image4 = get_option('tz_slider_4');
$image5 = get_option('tz_slider_5');
$imageUrl1 = get_option('tz_slider_url_1');
$imageUrl2 = get_option('tz_slider_url_2');
$imageUrl3 = get_option('tz_slider_url_3');
$imageUrl4 = get_option('tz_slider_url_4');
$imageUrl5 = get_option('tz_slider_url_5');
?>
<!-- Addded v1.1 -->
<?php if(get_option('tz_enable_welcome_message') == 'true') : ?>
<!--BEGIN #home-message -->
<div id="home-message">
<h2><?php echo stripslashes(get_option('tz_home_message')); ?></h2>
<!--END #home-message -->
</div>
<?php endif; ?>
<?php $sliderEnabled = get_option('tz_enable_slider'); ?>
<?php if($sliderEnabled == 'true') : ?>
<!--BEGIN #slider .clearfix -->
<div id="slider" class="clearfix">
<!--BEGIN .slides_container -->
<div class="slides_container">
<?php if($image1 != '') : ?>
<div>
<?php if($imageUrl1 != '') : ?>
<a href="<?php echo $imageUrl1; ?>"><img id="slider-image-1" src="<?php echo $image1; ?>" alt="<?php bloginfo(''); ?>" /></a>
<?php else: ?>
<img id="slider-image-1" src="<?php echo $image1 ?>" alt="<?php bloginfo(''); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($image2 != '') : ?>
<div>
<?php if($imageUrl2 != '') : ?>
<a href="<?php echo $imageUrl2; ?>"><img id="slider-image-2" src="<?php echo $image2; ?>" alt="<?php bloginfo(''); ?>" /></a>
<?php else: ?>
<img id="slider-image-2" src="<?php echo $image2 ?>" alt="<?php bloginfo(''); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($image3 != '') : ?>
<div>
<?php if($imageUrl3 != '') : ?>
<a href="<?php echo $imageUrl3; ?>"><img id="slider-image-3" src="<?php echo $image3; ?>" alt="<?php bloginfo(''); ?>" /></a>
<?php else: ?>
<img id="slider-image-3" src="<?php echo $image3 ?>" alt="<?php bloginfo(''); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($image4 != '') : ?>
<div>
<?php if($imageUrl4 != '') : ?>
<a href="<?php echo $imageUrl4; ?>"><img id="slider-image-4" src="<?php echo $image4; ?>" alt="<?php bloginfo(''); ?>" /></a>
<?php else: ?>
<img id="slider-image-4" src="<?php echo $image4 ?>" alt="<?php bloginfo(''); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<?php if($image5 != '') : ?>
<div>
<?php if($imageUrl5 != '') : ?>
<a href="<?php echo $imageUrl5; ?>"><img id="slider-image-5" src="<?php echo $image5; ?>" alt="<?php bloginfo(''); ?>" /></a>
<?php else: ?>
<img id="slider-image-5" src="<?php echo $image5 ?>" alt="<?php bloginfo(''); ?>" />
<?php endif; ?>
</div>
<?php endif; ?>
<!--END .slides_container -->
</div>
<?php if($image2 != '') : ?>
<!--BEGIN .slides-nav -->
<div class="slides-nav">
<a href="#" class="prev">Previous Slide</a>
<a href="#" class="next">Next Slide</a>
<!--END .slides-nav -->
</div>
<!--BEGIN .pagination -->
<ul class="pagination">
<?php if($image2 != '') : ?>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<?php endif; ?>
<?php if($image3 != '') : ?>
<li><a href="#"></a></li>
<?php endif; ?>
<?php if($image4 != '') : ?>
<li><a href="#"></a></li>
<?php endif; ?>
<?php if($image5 != '') : ?>
<li><a href="#"></a></li>
<?php endif; ?>
<!--END .pagination -->
</ul>
<?php endif; ?>
<!--END #home-slider -->
</div>
<?php endif; ?>
<?php $portfolioEnable = get_option('tz_recent_portfolio'); ?>
<?php if($portfolioEnable == 'true') : ?>
<!--BEGIN #recent-portfolio .home-recent -->
<div id="recent-portfolio" class="home-recent clearfix <?php if($sliderEnabled == 'false') : ?>no-border<?php endif; ?>">
<!--BEGIN .recent-wrap -->
<div class="recent-wrap">
<?php
//Set the starter count
$start = 3;
//Set the finish count
$finish = 1;
$query = new WP_Query();
$query->query('post_type=portfolio&posts_per_page=' . get_option('tz_portfolio_number'));
//Get the total amount of posts
$post_count = $query->post_count;
while ($query->have_posts()) : $query->the_post();
?>
<?php if(is_multiple($start, 3)) : /* if the start count is a multiple of 3 */ ?>
<!--BEGIN .hentry-wrap -->
<div class="hentry-wrap clearfix">
<?php endif; ?>
<!--BEGIN .hentry -->
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if(get_post_meta(get_the_ID(), 'upload_image_thumb', true) != '') : ?>
<div class="post-thumb">
<a title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>" href="<?php the_permalink(); ?>">
<img width="210" height="160" src="<?php echo get_post_meta(get_the_ID(), 'upload_image_thumb', true); ?>" alt="<?php the_title(); ?>" />
</a>
</div>
<?php else:
if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?>
<div class="post-thumb">
<a title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>" href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail-post'); /* post thumbnail settings configured in functions.php */ ?></a>
</div>
<?php endif; ?>
<?php endif; ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>"> <?php the_title(); ?></a></h2>
<!--BEGIN .entry-content -->
</div>
<!--END .hentry-->
</div>
<?php if(is_multiple($finish, 3) || $post_count == $finish) : /* if the finish count is a multiple of 3 or equals the total posts */ ?>
<!--END .hentry-wrap-->
</div>
<?php endif; ?>
<?php
$start++;
$finish++;
?>
<?php endwhile; wp_reset_query(); ?>
<!--END .recent-wrap -->
</div>
<!--END #recent-portfolio .home-recent -->
</div>
<?php endif; ?>
<?php if(get_option('tz_recent_posts') == 'true') : ?>
<!--BEGIN #recent-posts .home-recent -->
<div id="recent-posts" class="home-recent clearfix <?php if($sliderEnabled == 'false' && $portfolioEnable == 'false') : ?>no-border<?php endif; ?>">
<!--BEGIN .recent-wrap -->
<div class="recent-wrap">
<?php
//Set the starter count
$start = 3;
//Set the finish count
$finish = 1;
$query = new WP_Query();
$query->query('posts_per_page='.get_option('tz_recent_number'));
//Get the total amount of posts
$post_count = $query->post_count;
while ($query->have_posts()) : $query->the_post();
?>
<?php if(is_multiple($start, 3)) : /* if the start count is a multiple of 3 */ ?>
<!--BEGIN .hentry-wrap -->
<div class="hentry-wrap clearfix">
<?php endif; ?>
<!--BEGIN .hentry -->
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) : ?>
<div class="post-thumb">
<a title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>" href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail-post'); /* post thumbnail settings configured in functions.php */ ?></a>
</div>
<?php endif; ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>"> <?php the_title(); ?></a></h2>
<!--END .hentry-->
</div>
<?php if(is_multiple($finish, 3) || $post_count == $finish) : /* if the finish count is a multiple of 3 or equals the total posts */ ?>
<!--END .hentry-wrap-->
</div>
<?php endif; ?>
<?php
$start++;
$finish++;
?>
<?php endwhile; wp_reset_query(); ?>
<!--END .recent-wrap -->
</div>
<!--END #recent-posts .home-recent -->
</div>
<?php endif; ?>
<!--BEGIN .home-recent -->
<div id="home-border" class="home-recent clearfix">
<!--BEGIN .recent-wrap -->
<div class="recent-wrap">
<!--END .recent-wrap -->
</div>
<!--END #recent-portfolio .home-recent -->
</div>
<?php get_footer(); ?>