• 02-06-2010, 14:59:06
    #1
    Üyeliği durduruldu
    Merhaba arkadaşlar. www.webrazzi.com adresindeki gördüğüm sidebar'da (sağ kısım)

    Örn; 'Analiz' kategorisindeki son yazılar başlığı altında kategorideki son yazıları alt alta resimli şekilde gösteriyor. Bunu nasıl uygulayabiliriz ?

    Resim;


    Diğer bir sorum ise konu içindeki yazının altında resimli İlgili yazılar kısmı;
  • 02-06-2010, 15:06:39
    #2
    <?php if (have_posts()) : ?>
        <?php $my_query = new WP_Query('category_name=analiz&showposts=12'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
            <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
        <?php endwhile; ?>
        <?php else : ?>
    <?php endif; ?>
    Css ile istediğin düzene sokabilirsin .

    Son sorduğun ise eklenti eklentide resimli eklemiyordu sanırım onun içinde kendi temana göre resim kodunu eklemen lazım . Yukarıdaki resim kodlarınıda düzenlemen lazım .
  • 02-06-2010, 15:12:29
    #3
    Üyeliği durduruldu
    BuRaKM adlı üyeden alıntı: mesajı görüntüle
    <?php if (have_posts()) : ?>
        <?php $my_query = new WP_Query('category_name=analiz&showposts=12'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
            <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
        <?php endwhile; ?>
        <?php else : ?>
    <?php endif; ?>
    Css ile istediğin düzene sokabilirsin .

    Son sorduğun ise eklenti eklentide resimli eklemiyordu sanırım onun içinde kendi temana göre resim kodunu eklemen lazım . Yukarıdaki resim kodlarınıda düzenlemen lazım .
    Dediğiniz kodu ekledim fakat olmadı...
  • 02-06-2010, 15:29:45
    #4
    Çözdük sorunu .
  • 02-06-2010, 15:32:20
    #5
    Üyeliği durduruldu
    <?php $recent = new WP_Query("cat=X&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>
                       <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:5px 10px 0px 0px;"  src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" width="70" height="60" /></a>
                    <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; ?>
    kırmızı ile belirttiğim yerleri kendinize göre değiştirin. olması lazım. X ile belirttiğim yere kategorinizin id sini yazın
  • 02-06-2010, 16:29:25
    #6
    Üyeliği durduruldu
    @BADBAHT ve BuraKM, Çok teşekkür ederim.
  • 02-06-2010, 17:22:23
    #7
    <?php if (have_posts()) : ?>
    <?php $my_query = new WP_Query('category_name=analiz&showposts=12'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
    <a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    <?php endwhile; ?>
    <?php else : ?>
    <?php endif; ?>

    işaretlediğim yerdeki name yazan yere kategorinin ismini showpost kısmınada kaçtane listelenmesini istiyorsanız onu yazın 12 diyor 12 tane konu listelenir.
  • 11-06-2010, 15:10:28
    #8
    Üyeliği durduruldu
    Bunu nasıl yaparız?