Advertisement
Guest User

WordPress - Metronet Profile Picture plugin

a guest
Dec 29th, 2012
1,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. <?php
  2. //Assuming $post is in scope
  3. if (function_exists ( 'mt_profile_img' ) ) {
  4.     $author_id=$post->post_author;
  5.     mt_profile_img( $author_id, array(
  6.         'size' => 'thumbnail',
  7.         'attr' => array( 'alt' => 'Alternative Text' ),
  8.         'echo' => true )
  9.     );
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement