SHARE
TWEET

WordPress - Metronet Profile Picture plugin

a guest Dec 29th, 2012 748 Never
  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. ?>
RAW Paste Data
Top