• 06-10-2009, 19:36:24
    #1
    merhaba arkadaşlar

    wordpress ile yapılmış bir site gördüm

    Sağlık Siteniz | Uzmanlardan her konuda sağlıklı sağlık bilgileri adresteki ortada bulunan son yazılan 7 konu sanırım başlıkları çıkıyor katagorilere ait konuların bunu o ortadaki gibi düzeni bir eklentiyle mi yoksa manuel olarak mı yapılıyor

    nasıl yapabilirim manuel ise kodlarını bulabilirmisiniz?
  • 06-10-2009, 19:39:21
    #2
    o sitedeki Gupse Profesyonel WordPress Çözümleri | Premium WordPress tema tasarım, satış, destek ve özelleştirme merkezi... tarafından yapışmış özel bir temadır dilerseniz sizde yaptırabilirsiniz
  • 06-10-2009, 19:45:09
    #3
    biliyorumda ben tema yaptım zaten kendime sadece o ortadaki gibi bir düzen istemiştim temama ait o yüzden soruyorum
  • 06-10-2009, 19:45:15
    #4
    Şurada ve şurada gerekli cevapları yazdım.
    İlk bağlantıda sadece bir kategorinin, ikincisinde ise birden çok kategorinin son yazılarının nasıl alınacağına dair örnek mevcut.
  • 06-10-2009, 19:49:02
    #5
    umutsuz temayı nerden alabilirim diye sormamış nasıl yapabilirim diye soruyor.

    sabroza; gerekli css kodlamasını yaptıktan sonra bunu kategori id'leri ile yapabilirsiniz. örenk kod

    bu resimli olan bölümü çeker
                    <?php $recent = new WP_Query("cat=karegori-id&showposts=post sayısı muhtemelen 1 olur"); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "entry-preview", true) ): ?>
                        <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "entry-preview", true); ?>" alt="<?php the_title(); ?>" width="70" height="70" /></a>
                    <?php else: ?>
                        <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" width="70" height="70" /></a>
                    <?php endif; ?>
                    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                    <?php the_content_limit(80, ""); ?>
                    <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
                    <?php endwhile; ?>
    bu da hemen sağındaki 7 linki veren kod


    <?php $recent = new WP_Query("cat=kategori id&showposts=7"); while($recent->have_posts()) : $recent->the_post();?>
                    <?php if( get_post_meta($post->ID, "resim", true) ): ?>
                    <?php else: ?>
                    <?php endif; ?>
                    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                    <?php endwhile; ?>
    burada dikkat etmeniz gereken şey; bu kod her blok için ayrı ayrı uygulanmalı ve resimli bölüm ile sadece title kısmını çeken kategori-id lerinin aynı olmasına dikkat edin. iyi çalışmalar..
  • 06-10-2009, 20:07:25
    #6
    Üyeliği durduruldu
    netadmin'e Katılıyorum...
  • 06-10-2009, 20:10:13
    #7
    virtuozzo İlk verdiğin sayfa açılmadı hata veriyor yinede sağol

    netadmin teşekkürler bilgi için ben bu css konusunda pek anlamıyorum css kodunu nasıl yapıcam o konuda da yardımcı olurmusun çok teşekkürler
  • 06-10-2009, 20:19:38
    #8
    Wordpress Kategoriye Göre İçerik Çekme - Google Fan Webmaster Forum
    https://www.r10.net/wordpress/465477-...post1059526215

    <?php $CatPosts = new WP_Query("cat=1&showposts=5"); while($CatPosts->have_posts()) : $CatPosts->the_post();?>
        Başlık: <?php the_title(); ?>
        Link: <?php the_permalink() ?>
        Özet: <?php the_excerpt(); ?>
        Metin: <?php the_content(); ?>
    <?php endwhile; ?>
    cat=1 Kategori ID no.sudur.
    showposts=5 Gösterilecek yazı sayısıdır.
  • 06-10-2009, 20:48:52
    #9
    unutmadan bunu tam olarak nereye hangi dosyaya yerleştirecektim unuttum kafam karıştı