WordPress.org

Ready to get started?Download WordPress

Forums

Author Spotlight (Widget)
[resolved] FIX: Incorrect Author of Current Post (1 post)

  1. Lazy Girl Creations
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Lazy Girl Creations
  • This topic is resolved
  • WordPress version: 3.2.1