Support » Plugin: Posts for Page » show_meta='true' displays the author's Username

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve applied a temporary fix myself. For anyone else wanting to show the Author’s Display Name and not their Username on their posts, this is how to fix it:

    (Applies to version 2.1)

    Edit the file posts-for-page.php in /wp-content/plugins/posts-for-page

    Line 553 replace:

    $userdata->user_nicename; with $userdata->display_name;

    I’ve added a comment at the end of the line so I can find it again. The complete edited line looks like this:

    $output .= "Posted on " . mysql2date('F j, Y',$child->post_date) . " by " . $userdata->display_name; /* DA Edit. changed user_nicename to display_name */

    Reference information for the get_userdata data function used by Posts for Page to get the author’s name:

    Great Work. Thanks

    Gary Allman


    The fix above still applies – but I don’t see the sense in keeping this thread open so I’m marking it as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘show_meta='true' displays the author's Username’ is closed to new replies.