WordPress.org

Ready to get started?Download WordPress

Forums

Metronet Profile Picture
[resolved] Suggestion for instruction-improvement (5 posts)

  1. Toby Cryns (@themightymo)
    Member
    Posted 1 year ago #

    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/

  2. Ronald Huereca
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks! Agreed, the docs could be better. I will update this for the next version coming out.

    I'm still looking for a good per-image-size cropper. The closest I've found is Crop Thumbnails (http://wordpress.org/extend/plugins/crop-thumbnails/).

    --

    For those reading this, here's Toby's code in Pastebin: http://pastebin.com/Xaf8dJqQ

  3. Ronald Huereca
    Member
    Plugin Author

    Posted 1 year ago #

    I take back what I said about an image cropper. Post Thumbnail Editor has been updated to work with 3.5. Hurrah: http://wordpress.org/extend/plugins/post-thumbnail-editor

  4. Ronald Huereca
    Member
    Plugin Author

    Posted 1 year ago #

    Toby Cryns,

    I updated the documentation. Thanks for the tips. Should be much better now.

  5. Toby Cryns (@themightymo)
    Member
    Posted 1 year ago #

    Neat! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.