WordPress.org

Ready to get started?Download WordPress

Forums

People Lists
[resolved] Custom author profile fields on author page? (3 posts)

  1. urbanty
    Member
    Posted 2 years ago #

    Hi,

    is it possible to display the custom author profile fields, creates with the people lists plugin on the normal author page?
    Similar to WordPress's default echo $curauth->whatever;

    Many thanks in advance! :)

    http://wordpress.org/extend/plugins/people-lists/

  2. urbanty
    Member
    Posted 2 years ago #

    I figured it out.
    For anyone interested, it works like this:

    <?php
      $user_id = $curauth->ID;
      $key = 'people_lists_XXX';
      $single = true;
      $the_field_i_want_to_display = get_user_meta( $user_id, $key, $single );
      echo '<p><em>'. $the_field_i_want_to_display . '</em></p>';
    ?>

    The "XXX" in people_lists_XXX is of course the name of your custom field.

  3. enej
    Member
    Plugin Contributor

    Posted 2 years ago #

    I am glad you were able to figure it out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic