hocam teşekkür ederiz . arşive alıyorum
pRoFeSSioNaL adlı üyeden alıntı: mesajı görüntüle
Selam bi kaç saattir uğraşıyorum ama yapamadım wordpress'in sitesinde de galiba çözüm bulamamışlar..

Sağolsun Onur adında forumdan bir arkadaş ayarlıyordu bana burada biraz problemler oldu yardım ederseniz sevinirim..

Problem şu, şuanda sitedeki yazarlar böyle.



Ama ben benim istediğim 6 tane yazarın orda sabit kalmasını istiyorum. Yani şuanda büyük ihtimalle ilk 6 olan id'yi çekiyor.. Ve ayrıca resimlerininde..

Şimdiki onur arkadaşımın kullandığı kod şöyle..

<?php

//get all users, iterate through users, query for one post for the user,

//if there is a post then display the post title, author, content info

$blogusers = get_users_of_blog();
if ($blogusers) {
  foreach ($blogusers as $bloguser) {
    $args = array(
    'author' => $bloguser->user_id,
    	  'showposts' => 1,
          'caller_get_posts' => 1,
	  'order'    => 'DESC',
          'orderby' => 'date'
    );
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
         $user = get_userdata($bloguser->user_id);
    while ($my_query->have_posts()) : $my_query->the_post(); ?>

<div class="bloglist" style="width: 158px; height: 38px; float: left;">
                <div class="blogavatar" style="width: 38px; height: 38px; float: left;">

                <?php echo get_avatar( get_the_author_email(), '38' ); ?>

                </div>
                <div class="YazarBilgi" style="width: 120px; height: 33px; border-bottom: 5px solid #ff0000; float: right">
                <div class="SonYazi" style="font-size: 9px; width: 110px; height: 16px; line-height: 16px; overflow: hidden; clear: right;"> 
                <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                </div>
                <div class="YaziyiYazan" style="font-size: 10px; font-weight: bold; width: 120px; height: 17px; line-height: 17px; overflow: hidden;">
                <?php the_author_posts_link(); ?>
                </div>
</div>
</div>
 <?     endwhile;
    }
  }
}
?>
Teşekkür ederim şimdiden...

-----------------------


Biraz değişik şekilde yaptım ama oldu Sonra birisine lazım olur diye kodları ekliyorum..

Emailine göre sıralattım, email adresini ayarlayacam sıralamaya göre..


<div id="YazarListesi" style="width: 950px; height: 38px; margin: 0px auto 0px auto; overflow: hidden; color: #000;" >
<?php

//get all users, iterate through users, query for one post for the user,

//if there is a post then display the post title, author, content info

$blogusers = get_users('orderby=email');

if ($blogusers) {
  foreach ($blogusers as $bloguser) {
     $args = array(
     'author' => $bloguser->ID,
           'showposts' => 1,
	   'caller_get_posts' => 1,
           'orderby' => 'user_login'

);
				
			    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
         $user = get_userdata($bloguser->ID);

     while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="bloglist" style="width: 158px; height: 38px; float: left;">
                <div class="blogavatar" style="width: 38px; height: 38px; float: left;">
              <?php echo get_avatar( get_the_author_email(), '38' ); ?>
                </div>
                <div class="YazarBilgi" style="width: 120px; height: 33px; border-bottom: 5px solid #ff0000; float: right">
                <div class="SonYazi" style="font-size: 9px; width: 110px; height: 16px; line-height: 16px; overflow: hidden; clear: right;"> 
                <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                </div>
                <div class="YaziyiYazan" style="font-size: 10px; font-weight: bold; width: 120px; height: 17px; line-height: 17px; overflow: hidden;">
                <?php the_author_posts_link(); ?>
                </div>
</div>
</div>
 <?     endwhile;
    }
  }
}
?>
</div>