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

  • Resolved Lazy Girl Creations

    (@sharrondenicegmailcom)


    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 ‘[Plugin: Author Spotlight (Widget)] FIX: Incorrect Author of Current Post’ is closed to new replies.