teşekkürler fakat bu şekilde ana sayfadaki yeni yazılar değişiyor rastgele yazılar ile aynı oluyor
yapmak istediğim resimdeki gibi
düzenlenen index.php dosyası
<?php get_header(); ?>
<div id="content">
<div class="yazar-projeleri">
<h3>Yazar Projeleri Makaleler Elektronik Genel </h3>
<?php query_posts('cat=9&showposts=4&orderby=rand');?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<img src="<?php echo ilk_onizlemeyi_al($post->ID);?>" class="thumb"width="50" height="50"alt="<?php the_title(); ?>"/><h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p><?php echo kisitla(get_the_excerpt(), 10); ?> </p>
<?php endwhile; else: ?><?php endif; ?>
</div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="elektronik6">
<div class="box6">
<div id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="klasor6"><?php the_category(', ') ?></div>
</div>
<div class="devam"><?php the_content('Yazının Devamını Okuyun »'); ?></div>
</div>
</div>
<?php endwhile; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?><?php else : ?>
<div class="entry3"><h2>Bulunamadı</h2>Üzgünüm Aradığınız şey burada değil</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>