• 06-05-2013, 13:26:53
    #1
    Arkadaşlar Katagori bölümüne tıklayınca altında bulunan yazılar görünmüyor.

    Katagori şablonu şu şekilde

    <?php get_header(); ?>

    <div id="genel">
    <div class="ads-header">
    <?php if( get_option('of_ads72890') != '') { ?>
    <div class="ads-header-reklam">
    <?php echo get_option('of_ads72890'); ?>
    </div>
    <?php } else { ?>
    <div class="ads-header-reklam">
    <img src="<?php bloginfo('template_directory'); ?>/images/728x90.png" alt="reklam" />
    </div>
    <?php } ?>
    </div>
    <div id="anasutun">

    <div class="category-kutu">
    <div class="categorybaslik">
    <h1>
    <?php single_cat_title(); ?>
    </h1>
    </div>
    </div>
    <?php if ( $paged < 2 ) { ?>
    <div class="category-kutu">
    <div class="ickutu">
    <?php $current_category = single_cat_title("", false); ?>
    <?php $recent = new WP_Query('category_name='.$current_category.'showp osts=1&'); while($recent->have_posts()) : $recent->the_post(); ?>
    <div class="anabaslik"><h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2></div>
    <div class="categoryfoto"> <a href="<?php the_permalink(); ?>">
    <?php if ( has_post_thumbnail() ) { ?>
    <?php the_post_thumbnail('featured-post-thumbnail'); ?>
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/yok01.png" alt="<?php the_title(); ?>" />
    <?php } ?>
    </a>
    </div>
    <div class="categoryyazi">
    <?php the_content_limit('800'); ?>
    </div>
    <?php endwhile; wp_reset_query(); ?>
    </div>
    </div>
    <?php if( get_option('of_reklamgoster') == 'true') {
    include (TEMPLATEPATH . '/inc/ads.php');
    } ?>
    <div class="beyaz-kutu">
    <div class="anabaslik"><h2>Diğer Başlıklar</h2></div>
    <?php $current_category = single_cat_title("", false); ?>
    <?php $recent = new WP_Query('showposts=1&offset=1&category_name='.$cu rrent_category.''); while($recent->have_posts()) : $recent->the_post(); ?>
    <div class="ickutu3">
    <div class="fotog">
    <div class="foto2"><a href="<?php the_permalink(); ?>">
    <?php if ( has_post_thumbnail() ) { ?>
    <?php the_post_thumbnail('featured-post-thumbnail'); ?>
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/yok02.png" alt="<?php the_title(); ?>" />
    <?php } ?>
    </a>
    </div>
    <div class="golge3"><img src="<?php bloginfo('template_directory'); ?>/images/golge3.png" alt="gölge" /></div>
    </div>
    <div class="baslik2">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title_attribute(); ?>">
    <?php the_title(); ?>
    </a></h2>
    </div>
    <div class="yazi2">
    <?php the_content_limit('450'); ?>
    </div>
    </div>
    <?php endwhile; wp_reset_query(); ?>
    </div>
    <div class="golge2"><img src="<?php bloginfo('template_directory'); ?>/images/golge2.png" alt="gölge" /></div>

    <?php } else { ?>

    <div class="beyaz-kutu">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="ickutu3">
    <div class="fotog">
    <div class="foto2"><a href="<?php the_permalink(); ?>">
    <?php if ( has_post_thumbnail() ) { ?>
    <?php the_post_thumbnail('featured-post-thumbnail'); ?>
    <?php } else { ?>
    <img src="<?php bloginfo('template_url'); ?>/images/yok02.png" alt="<?php the_title(); ?>" />
    <?php } ?>
    </a>
    </div>
    <div class="golge3"><img src="<?php bloginfo('template_directory'); ?>/images/golge3.png" alt="gölge" /></div>
    </div>
    <div class="baslik2">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title_attribute(); ?>">
    <?php the_title(); ?>
    </a></h2>
    </div>
    <div class="yazi2">
    <?php the_content_limit('450'); ?>
    </div>
    </div>
    <?php endwhile; endif; ?>
    </div>
    <div class="golge2"><img src="<?php bloginfo('template_directory'); ?>/images/golge2.png" alt="gölge" /></div>
    <?php } ?>

    <div class="sayfalama">
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
    </div>

    <div class="golge2"><img src="<?php bloginfo('template_directory'); ?>/images/golge2.png" /></div>
    </div>
    <?php get_sidebar('3'); ?>
    </div>
    <?php get_footer(); ?>
  • 06-05-2013, 13:32:47
    #2
    category.php dosyasının adını category2.php olarak değiştirip bir deneyin nasıl gözükecek bakalım