Alttaki 1. kod avatar resmi olarak wp paneldeki orijinal avatar resmini çekiyor
1. kod :
<?php printf( __( '<span><a href="%s">%s%s</a> %s %s önce</span>', 'dwqa' ), dwqa_get_author_link( $user_id ), get_avatar( $user_id, 48 ), get_the_author(), $text, $time ) ?>2. kodda ise temanın üyelik panelindeki yüklenen avatarın yolu.
2. kod :
<?php if(get_the_author_meta( 'user_avatar_custom', $user->ID ) != 0) : ?>
<img src="<?php echo wp_get_attachment_url(get_the_author_meta( 'user_avatar_custom', $user->ID ));?>" alt="" />
<form method="POST">
<button class="remove-button" type="submit" name="avatar_remove" value="remove"><i class="fa fa-times"></i></button>
</form>
<?phpsoru cevap eklentisi gidip 1. koddaki wp admindki resmi çekiyor. ama ben temanın profiline yüklenen resmi yani 2. koddaki resmi çekmesini istiyorum2. koddaki hangi kısmı birinci koda yazmalıyım ?