WordPress.org

Support

Support » Plugins and Hacks » Posts for Page » [Resolved] show_meta='true' displays the author's Username

[Resolved] 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: http://codex.wordpress.org/Function_Reference/get_userdata

    Great Work. Thanks

    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 ‘[Resolved] show_meta='true' displays the author's Username’ is closed to new replies.
Skip to toolbar