Recently I made a theme for my WordPress blog. Now I want to filter(remove) my 5 latest post from the main page (index.php
) and show them in a slider.
Now my 5 latest posts are showing in the first page and slider simultaneously 🙁
Update:
Thanks for your reply.
I couldn’t solve my problem.
this is my index.php source:
<?php get_header() ?>
<div id="main-wrapper">
<div class="middle-content">
<div id="sidebar-right">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-right')) : else : ?>
<?php endif; ?>
</div>
<section class="clearfix" id="content">
<section id="main-content">
<?php echo get_touchcarousel(2); ?>
<div class="mainnews"><h2>Latest News</h2></div>
<div class="main-menu-content">
<?php if(have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article id="etc" class="post<?php the_category_unlinked(' '); ?>">
<div class="post-content">
<div class="post-title">
<a href="<?php the_permalink(); ?>"><h1><?php the_title(); ?></h1></a>
</div>
<div class="clear"></div>
<?php the_excerpt(); ?>
<?php the_post_thumbnail(array(260,140), array ()); ?>
</div>
<div class="clear"></div>
</article>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php if(function_exists('wp_simple_pagination')) {
wp_simple_pagination();
} ?>
</section>
<div id="sidebar-left">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-left')) : else : ?>
<?php endif; ?>
</div>
</section>
</div>
<div class="clear"></div>
<?php get_footer(); ?>
</div>
</section>
</div>
<div class="clear"></div>
<?php get_footer(); ?>
Would you please help me?