Want more features on Pastebin? Sign Up, it's FREE!
Guest

WordPress - Metronet Profile Picture plugin

By: a guest on Dec 29th, 2012  |  syntax: PHP  |  size: 0.25 KB  |  views: 275  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data