-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
51 lines (37 loc) · 1.26 KB
/
author.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php get_header(); ?>
<?php
$args = array(
'post_status' => 'publish',
'post_type' => 'abonelik',
'tax_query' => array(
array(
'taxonomy' => 'kullanici',
'field' => 'slug',
'terms' => 'admin'
)
)
);
$myposts = get_posts( $args );
foreach ( $myposts as $post ) : setup_postdata( $post );
$abonelikgun = strip_tags( get_the_term_list( $post->post->ID, 'aboneliksure', '', ', ', '' ) );
$ilktarih = get_the_date('Y-m-d');
$simdikitarih = current_time('Y-m-d');
endforeach; wp_reset_postdata();
?>
<?php
while ( have_posts() ) : the_post();
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
endwhile;
?>
<div class="profil">
<div class="profil-ic">
<div class="profil-avatar">
<?php echo get_avatar( $curauth->user_email, $size = '190', $default = 'http://www.egitimalem.com/wp-content/themes/egitimalem.com/img/avatar.jpg' ); ?>
</div>
<div class="profil-icerik">
<h1 class="profil-title"><?php echo $curauth->user_firstname.' '.$curauth->user_lastname; ?></h1>
<p class="profil-desc"><?php echo $curauth->description ?></p>
</div>
</div>
</div>
<?php get_footer(); ?>