WordPress.org

Support

Support » Plugins and Hacks » User Profile Picture » [Resolved] Suggestion for instruction-improvement

[Resolved] Suggestion for instruction-improvement

  • Wonderful plugin. Thank you!

    It took me a little while to figure out exactly how to display the author image in my template.

    The code I ended up using follows:

    if (function_exists ( 'mt_profile_img' ) ) {
    								$author_id=$post->post_author;
    								mt_profile_img( $author_id, array(
    									'size' => 'thumbnail',
    									'attr' => array( 'alt' => 'Alternative Text' ),
    									'echo' => true )
    								);
    							}

    Your instructions got me close, but I had to change the “echo” and also had to grab the $author_id variable from the post data. It might be helpful to future users to include the above example on your “Installation” tab in the WP.org repository.

    Again, thanks for creating this great plugin!

    http://wordpress.org/extend/plugins/metronet-profile-picture/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Suggestion for instruction-improvement’ is closed to new replies.
Skip to toolbar