wp postlarını harf sırasına göre gösterme
8
●728
- 01-05-2014, 12:29:53wp 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Üyeliği durdurulduKategori içindeki postların listelenme şekline müdahale etmek için category.php'ni bizimle paylaşman gerek.webgezgini10 adlı üyeden alıntı: mesajı görüntüle
- 01-05-2014, 14:22:04Gibberring 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'); } ?> - 01-05-2014, 14:28:41Üyeliği durdurulducategory-default.php yide paylaşırmısın burda include etmiş birkaç sayfawebgezgini10 adlı üyeden alıntı: mesajı görüntüle
- 01-05-2014, 14:31:18Gibberring 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 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]; ?>&w=200&h=150&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Ü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]; ?>&w=200&h=150&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:57Gibberring adlı üyeden alıntı: mesajı görüntüle
kategori sayfalamada 2. sayfaya gecerken hata olustu hocam onun dısında oldu - 01-05-2014, 14:56:45Üyeliği durduruldupm ile skype gönderirmisin halledelimwebgezgini10 adlı üyeden alıntı: mesajı görüntüle
- 02-05-2014, 14:04:30Ü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]; ?>&w=200&h=150&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(); ?>