• 01-05-2014, 12:29:53
    #1
    wp deki kategoriler harf sırasına göre gösteriliyor ama kategorilerdeki postları tarihe göre degilde harf sırasına göre göstermek mümkünmüdür
  • 01-05-2014, 13:31:14
    #2
    Üyeliği durduruldu
    webgezgini10 adlı üyeden alıntı: mesajı görüntüle
    wp deki kategoriler harf sırasına göre gösteriliyor ama kategorilerdeki postları tarihe göre degilde harf sırasına göre göstermek mümkünmüdür
    Kategori içindeki postların listelenme şekline müdahale etmek için category.php'ni bizimle paylaşman gerek.
  • 01-05-2014, 14:22:04
    #3
    Gibberring adlı üyeden alıntı: mesajı görüntüle
    Kategori içindeki postların listelenme şekline müdahale etmek için category.php'ni bizimle paylaşman gerek.


    <?php
    $cat13 = get_option('kt_resim');
    $cat14 = get_option('kt_video');
    $post = $wp_query->post;
    
    if (in_category(array( 0 => $cat13 ))) {
          include(TEMPLATEPATH.'/category-image.php');
      } elseif (in_category(array( 0 => $cat14 ))) {
          include(TEMPLATEPATH.'/category-image.php');
      } else {
          include(TEMPLATEPATH.'/category-default.php');
      }
    ?>
  • 01-05-2014, 14:28:41
    #4
    Üyeliği durduruldu
    webgezgini10 adlı üyeden alıntı: mesajı görüntüle
    <?php
    $cat13 = get_option('kt_resim');
    $cat14 = get_option('kt_video');
    $post = $wp_query->post;
    
    if (in_category(array( 0 => $cat13 ))) {
          include(TEMPLATEPATH.'/category-image.php');
      } elseif (in_category(array( 0 => $cat14 ))) {
          include(TEMPLATEPATH.'/category-image.php');
      } else {
          include(TEMPLATEPATH.'/category-default.php');
      }
    ?>
    category-default.php yide paylaşırmısın burda include etmiş birkaç sayfa
  • 01-05-2014, 14:31:18
    #5
    Gibberring adlı üyeden alıntı: mesajı görüntüle
    category-default.php yide paylaşırmısın burda include etmiş birkaç sayfa


    <?php get_header(); ?>
    <div id="icerik">
    
    		<?php if (have_posts()) : ?>
    <div id="konular">	
    		
    		<div class="ayirac"></div>
    		<?php while (have_posts()) : the_post(); ?> 
    <div class="konu">
    <div class="resim">
    <?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?>
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&amp;w=200&amp;h=150&amp;zc=1" alt="<?php the_title(); ?>" width="200" height="150" /></a>
    <?php } else { ?>
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, 'resim',true) ?>" alt="<?php the_title(); ?>" width="200" height="150" /></a>
    <?php } ?>
    </div>
    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php echo kt_limit($post->post_content, 400); ?>
    
    <div class="yazibilgi"><span class="yazar"><?php the_author(); ?></span><span class="kat"><?php the_category(', ') ?></span><span class="yorum"><?php comments_number('0', '1', '%'); ?> Yorum</span><span class="devami"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Devami..</a></span></div>
    </div>
    <?php endwhile; ?>
    <div class="temizle"></div>
    <div class="sayfalama"><?php echo wp_pagenavi(); ?></div>
    
    </div>
    <?php else : ?>
    		<div class="yok">
    		<h2>Aradiginiz Sayfa bulunamamistir.</h2>
    		<p>Aradiginiz sayfa adresini dogru yazdiginizdan emin olunuz.</p>
    		</div>
    		<?php endif; ?>
    </div>
    <?php get_sidebar(); get_footer(); ?>
  • 01-05-2014, 14:48:09
    #6
    Üyeliği durduruldu
    <?php get_header(); ?> 
    <div id="icerik"> 
    
            <?php if (have_posts()) : ?> 
    <div id="konular">     
             
            <div class="ayirac"></div> 
            <?php query_posts('cat=&orderby=title&order=ASC'); ?>
            <?php while (have_posts()) : the_post(); ?>  
    <div class="konu"> 
    <div class="resim"> 
    <?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?> 
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&amp;w=200&amp;h=150&amp;zc=1" alt="<?php the_title(); ?>" width="200" height="150" /></a> 
    <?php } else { ?> 
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, 'resim',true) ?>" alt="<?php the_title(); ?>" width="200" height="150" /></a> 
    <?php } ?> 
    </div> 
    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> 
    <?php echo kt_limit($post->post_content, 400); ?> 
    
    <div class="yazibilgi"><span class="yazar"><?php the_author(); ?></span><span class="kat"><?php the_category(', ') ?></span><span class="yorum"><?php comments_number('0', '1', '%'); ?> Yorum</span><span class="devami"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Devami..</a></span></div> 
    </div> 
    <?php endwhile; ?> 
    <div class="temizle"></div> 
    <div class="sayfalama"><?php echo wp_pagenavi(); ?></div> 
    
    </div> 
    <?php else : ?> 
            <div class="yok"> 
            <h2>Aradiginiz Sayfa bulunamamistir.</h2> 
            <p>Aradiginiz sayfa adresini dogru yazdiginizdan emin olunuz.</p> 
            </div> 
            <?php endif; ?> 
    </div> 
    <?php get_sidebar(); get_footer(); ?>
    Böyle dener misin?
  • 01-05-2014, 14:50:57
    #7
    Gibberring adlı üyeden alıntı: mesajı görüntüle
    <?php get_header(); ?> 
    <div id="icerik"> 
    
            <?php if (have_posts()) : ?> 
    <div id="konular">     
             
            <div class="ayirac"></div> 
            <?php query_posts('cat=&orderby=title&order=ASC'); ?>
            <?php while (have_posts()) : the_post(); ?>  
    <div class="konu"> 
    <div class="resim"> 
    <?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?> 
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&amp;w=200&amp;h=150&amp;zc=1" alt="<?php the_title(); ?>" width="200" height="150" /></a> 
    <?php } else { ?> 
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, 'resim',true) ?>" alt="<?php the_title(); ?>" width="200" height="150" /></a> 
    <?php } ?> 
    </div> 
    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> 
    <?php echo kt_limit($post->post_content, 400); ?> 
    
    <div class="yazibilgi"><span class="yazar"><?php the_author(); ?></span><span class="kat"><?php the_category(', ') ?></span><span class="yorum"><?php comments_number('0', '1', '%'); ?> Yorum</span><span class="devami"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Devami..</a></span></div> 
    </div> 
    <?php endwhile; ?> 
    <div class="temizle"></div> 
    <div class="sayfalama"><?php echo wp_pagenavi(); ?></div> 
    
    </div> 
    <?php else : ?> 
            <div class="yok"> 
            <h2>Aradiginiz Sayfa bulunamamistir.</h2> 
            <p>Aradiginiz sayfa adresini dogru yazdiginizdan emin olunuz.</p> 
            </div> 
            <?php endif; ?> 
    </div> 
    <?php get_sidebar(); get_footer(); ?>
    Böyle dener misin?

    kategori sayfalamada 2. sayfaya gecerken hata olustu hocam onun dısında oldu
  • 01-05-2014, 14:56:45
    #8
    Üyeliği durduruldu
    webgezgini10 adlı üyeden alıntı: mesajı görüntüle
    kategori sayfalamada 2. sayfaya gecerken hata olustu hocam onun dısında oldu
    pm ile skype gönderirmisin halledelim
  • 02-05-2014, 14:04:30
    #9
    Üyeliği durduruldu
    Çözümü buraya ekleyelim diğer lazım olan arkadaşlarda örnekten faydalansın.

    <?php get_header(); ?> 
    <div id="icerik"> 
     
            <?php if (have_posts()) : ?> 
    <div id="konular">     
              
            <div class="ayirac"></div> 
            <?php query_posts('cat=&orderby=title&order=ASC'); ?>
            <?php while (have_posts()) : the_post(); ?>  
    <div class="konu"> 
    <div class="resim"> 
    <?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?> 
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&amp;w=200&amp;h=150&amp;zc=1" alt="<?php the_title(); ?>" width="200" height="150" /></a> 
    <?php } else { ?> 
    <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, 'resim',true) ?>" alt="<?php the_title(); ?>" width="200" height="150" /></a> 
    <?php } ?> 
    </div> 
    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> 
    <?php echo kt_limit($post->post_content, 400); ?> 
     
    <div class="yazibilgi"><span class="yazar"><?php the_author(); ?></span><span class="kat"><?php the_category(', ') ?></span><span class="yorum"><?php comments_number('0', '1', '%'); ?> Yorum</span><span class="devami"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Devami..</a></span></div> 
    </div> 
    <?php endwhile; ?> 
    <div class="temizle"></div> 
    <div class="sayfalama"><?php echo wp_pagenavi(); ?></div> 
     
    </div> 
    <?php else : ?> 
            <div class="yok"> 
            <h2>Aradiginiz Sayfa bulunamamistir.</h2> 
            <p>Aradiginiz sayfa adresini dogru yazdiginizdan emin olunuz.</p> 
            </div> 
            <?php endif; ?> 
    </div> 
    <?php get_sidebar(); get_footer(); ?>