how to show current user avatart in if echo clause
-
My code in template.
<?php if ( is_user_logged_in() ) { echo ' <a href="link logout"> <img class="rotate" src="CODE TO GET URL AVATART" width="205px"/> </a> '; } else { echo ' <a href="link login"> <img class="rotate" src="https://localhost/design/images/h_login.png" width="100px" /> </a> '; } ?>
Can you see text “CODE TO GET URL AVATART” ?
What should i edit it to show avatart current user ?
thank you for you answer.
Sorry my english not good !
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘how to show current user avatart in if echo clause’ is closed to new replies.