WordPress.org

Support

Support » Plugins and Hacks » Author Spotlight (Widget) » [Resolved] [Plugin: Author Spotlight (Widget)] FIX: Incorrect Author of Current Post

[Resolved] [Plugin: Author Spotlight (Widget)] FIX: Incorrect Author of Current Post

  • Found a bug in the displayAuthor function. It was displaying the wrong author because it didn’t have the current post. Changed the code as follows

    From

    // Does the actual work of preparing the profile markup
    function displayAuthor($args){
            global $authordata;

    To

    // Does the actual work of preparing the profile markup
    function displayAuthor($args){
            global $post;
            the_post();
    
            global $authordata;

    http://wordpress.org/extend/plugins/author-profile/

  • The topic ‘[Resolved] [Plugin: Author Spotlight (Widget)] FIX: Incorrect Author of Current Post’ is closed to new replies.
Skip to toolbar