<?php /* Template Name: Yazarlar */ ?><?php include(TEMPLATEPATH . '/header.php'); ?><?php wp_reset_query(); ?>
<?php the_title(); ?>
<?php global $wpdb; $yazarid = get_option(yazarlarinID); $fs_ayarlama= $yazarid; if($fs_ayarlama=="") { $fs_ayarlama = "9999999999999999999999999999"; } $authors = $wpdb->get_results("SELECT ID, user_nicename from $wpdb->users WHERE ID NOT IN($fs_ayarlama) ORDER BY display_name"); foreach($authors as $author) { $user_info = get_userdata($author->ID); $user_level = $user_info->user_level; if($user_level > 1) { echo '
'; echo '
'.get_avatar($author->ID, '128').'
'; echo '
'.get_the_author_meta('display_name', $author->ID).'
'; echo '
'; query_posts('author='.$author->ID.'&showposts=1'); if ( have_posts() ) : while ( have_posts() ) : the_post(); echo ''; echo get_the_title(); echo ''; endwhile; else : echo '
Yazara Ait İçerik Bulunamadı.
'; endif; echo '
'; echo ''; echo '
'; } } wp_reset_query(); ?>
<?php include(TEMPLATEPATH . '/dosyalar/sagblok/sagBlok.php'); ?>
<?php include(TEMPLATEPATH . '/footer.php'); ?>