Merhaba arkadaşlar,
Uzun aradan sonra Wordpress'i elime aldım. Bizim okul için öğrenci portalı oluşturuyorum. (İmzamdaki site)
Şimdi kullandığım temada bulunan kategori kadar alan oluşturup bunların ilk yazısını ayrı (küçük resmiyle) diğer yazılarını iste link olarak gösteriyor.
Benim amacım bunların hepsini tek bir kısımda toplamak, bunu yaptım.
Ama şöyle bir sorunum var; kategori sayısı kadar alan oluşturuyor. (İmzamda görebilirsiniz)
php'den pek anlamadığım için çözemiyorum.
Bunu belli bir kategori için yapabileceğim kod arıyorum. (Yani bunu istediğim kadar yapmak istiyorum).

Böyle bir temaya ya da koda denk gelen varsa yardımcı olursa sevinirim.

Bendeki kodlar:

			<div id="list-categories">
				<h2 class="section-title"><p align="left">Son Eklenler</p><p align="right" style="margin-top:-25px">Forumdan Başlıklar</p></h2>
<?php
	// Flag to indicate alternating columns
	$catLeftCol = true;
	$intCount = 1;

	// Determine how many posts to show per category
	$intPostCount = 10;

	// Retrieve a list of selected categories
	$categories = get_categories("orderby=ID&order=asc&hide_empty=1&hierarchial=0&include=$front_cat_list");

	// Iterate over each category
	foreach ($categories as $category)
	{
		// Retrieve a handful of posts for this category
		query_posts("cat=1&showposts=10&orderby=date&order=DESC");
		
		// Increment the debug counter
		$intCount++;
			
?>
		<!-- Loop: <?php echo $intCount; ?> -->
<?php			
		// Initialise the thumb display flag
		$catFirstPost = true;

		// Do we have any categories to display?
		while (have_posts())
		{

			// Advance the post queue
			the_post(); $do_not_duplicate = $post->ID;

			// Is this the first post in the category? 
			if ($catFirstPost)
			{
?>
<?php
			// Check whether we need to create the "row wrapper"
			if ($catLeftCol)
			{
?>
				<div class="entry-row clearfix">
<?php
			}
?>

					<div id="<?php echo $category->slug; ?>-list" class="entry-list">


                        <h4 class="entry-list-title"><a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Devamı %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>"><?php the_title(); ?></a></h4>
						<div class="entry-list-meta">
							<span class="entry-list-date"><?php unset($previousday); printf( __( '%1$s', 'wpbx' ), the_date( 'D, M j Y', '', '', false ) ) ?></span>
							<span class="entry-meta-sep">|</span>
							<span class="entry-list-comm"><?php comments_popup_link( __( 'Yorum yok', 'wpbx' ), __( '1 Yorum', 'wpbx' ), __( '% Yorum', 'wpbx' ) ) ?></span>
						</div>

						<div class="entry-list-thumb">
							<a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Devamı %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>">
							<?php
							$entry_preview = get_post_custom_values("entry-preview");
							if ( is_array($entry_preview) ) { ?>
								<img class="entry-preview" src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'entry-preview',true) ?>&amp;w=258&amp;h=110&amp;zc=1" alt="<?php the_title(); ?>" />
							<?php }	else { ?>
								<img class="entry-preview" src="<?php bloginfo('template_directory'); ?>/images/image-blank-big.jpg" alt="<?php the_title(); ?>" />
							<?php }	?>
							</a>
						</div>

						<div class="entry-list-content">
							<?php the_content_limit(150, ''); ?>
						</div>

						<p class="more-link">Diğer Eklenenler</p>
						<ul>
<?php		
				// First post display is complete
				$catFirstPost = false;
				the_post() == $do_not_duplicate;

			} // if ($catFirstPost)
?>

							<li class="clearfix">
								<span class="entry-star"><img src="<?php bloginfo('template_directory'); ?>/images/bullet-star.png" alt="#" /></span>
								<h4><a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Devamı %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>"><?php the_title(); ?></a></h4>
								<div class="entry-meta">
									<span class="entry-date"><?php unset($previousday); printf( __( '%1$s', 'wpbx' ), the_date( 'D, M j Y', '', '', false ) ) ?></span>
									<span class="entry-meta-sep">|</span>
									<span class="entry-comm"><?php comments_popup_link( __( 'Yorum yok', 'wpbx' ), __( '1 Yorum', 'wpbx' ), __( '% Yorum', 'wpbx' ) ) ?></span>
								</div>
                            </li>

<?php 
		} // while (have_posts())
?>
						</ul>
					</div>

<?php			
		/* 
			If we've run out of posts to display, we need to close the "row"
		*/
		if (!$catLeftCol)
		{
?>
				</div><!-- .entry-row -->

<?php			
		}
			
		// Toggle the alternator
		$catLeftCol = !$catLeftCol;

	} // end foreach category

	// Account for odd number of posts
	if (!$catLeftCol)
	{
?>
				</div><!-- .entry-row -->

<?php			
	}
?>		

			</div><!-- #list-categories -->