WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: User Photo] Compatible with 2.5 yet? (7 posts)

  1. Azurite
    Member
    Posted 6 years ago #

    Is this/will this be compatible with WP 2.5?

  2. youtubeline
    Member
    Posted 6 years ago #

    i have same problem.

  3. katwhite
    Member
    Posted 6 years ago #

    I was able to get this working with 2.5 just by adding this to my author.php file after populating $curauth (see the Author Templates page for examples):

    $authordata = $curauth;

    I haven't seen any ill effects yet (though overwriting globals always makes me nervous, but whatever).

    Hope that's helpful!

  4. Weston Ruter
    Member
    Posted 6 years ago #

    I just updated the plugin for WP 2.5.

    The latest release has new template tags which remove the need for setting a global $authordata

  5. katwhite
    Member
    Posted 6 years ago #

    Works perfectly -- thanks so much for the update. :)

  6. airencn
    Member
    Posted 6 years ago #

    Well, where is the author.php file?

  7. katwhite
    Member
    Posted 6 years ago #

    Just create one based off archive.php (if you have that in your theme) or index.php. Then insert the call to render the user photo wherever you want it to go. The Author Templates page even has a full sample author.php file you can just copy and paste (then update with the photo) if you want to.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags