WordPress.org

Forums

WP Favorite Posts
display author name (2 posts)

  1. Pirco the One and Only
    Member
    Posted 2 years ago #

    I see that $p->post_author shows the author's ID of a given favorite.
    can someone point me to a quick and slim (low dB overhead) solution to display the author's name?
    thanks

    http://wordpress.org/extend/plugins/wp-favorite-posts/

  2. Pirco the One and Only
    Member
    Posted 2 years ago #

    oh I think I got it:

    $author_info = get_userdata($p->post_author);
    $author_name = $author_info-> display_name;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Favorite Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic