sitemin ana sayfasında kategorilere göre 3 bölümde haber gösteriyor ama üçüde aynı kategoriden haberleri gösteriyor anladığım kadarıyla kodlar home.php de
<?php get_header(); ?>
<?php // Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing ?>
<?php if (function_exists('gallery_styles')) : ?>
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
<?php endif; ?>
<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')); ?></h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
" rel="bookmark">/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
" rel="bookmark"><?php the_title(); ?>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<?php $cat = get_category(get_theme_mod('featured_top_left')); ?>
" rel="bookmark"><?php echo __("Read More Posts From ", 'studiopress')." ".$cat->name; ?>
<h3><?php echo cat_id_to_name(get_theme_mod('featured_top_right')); ?></h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right')."&showposts=".get_theme_mod('featured_top_right_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
" rel="bookmark">/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
" rel="bookmark"><?php the_title(); ?>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<?php $cat = get_category(get_theme_mod('featured_top_right')); ?>
" rel="bookmark"><?php echo __("Read More Posts From ", 'studiopress')." ".$cat->name; ?>
<h3><?php echo cat_id_to_name(get_theme_mod('featured_bottom')); ?></h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom')."&showposts=".get_theme_mod('featured_bottom_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
" rel="bookmark">/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" />
<?php else: ?>
<?php endif; ?>
" rel="bookmark"><?php the_title(); ?>
<?php the_content_limit(350, __("[Read more of this review]", 'studiopress')); ?>
<hr/>
<?php endwhile; ?>
<?php $cat = get_category(get_theme_mod('featured_bottom')); ?>
" rel="bookmark"><?php echo __("Read More Posts From ", 'studiopress')." ".$cat->name; ?>
<?php include(TEMPLATEPATH."/sidebar.php");?>
<?php // The main column ends ?>
<?php get_footer(); ?>