WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] User meta data not being displayed (9 posts)

  1. Joshua
    Member
    Posted 1 year ago #

    Hi Daniel,

    I'm finding it difficult to display the 'User meta data' fields. I'm trying to get i.e. the AIM, Google+ and Twitter fields to display in my theme. Can you show me where to go from here?

    <ul class="widgets workers">
    					<?php $coauthors = get_coauthors(); ?>
    					<?php foreach( $coauthors as $coauthor ): ?>
    
    						<li>
    							<?php $userdata = get_userdata( $coauthor->ID ); ?>
    							<?php if( $userdata->user_description ) echo $userdata->user_description; ?>
    							<div class="avatars">
    								<?php echo get_avatar( $coauthor->user_email, '80' ); ?>
    							</div>
    							<div class="workerinfo">
    								<h5><?php echo $coauthor->display_name; ?></h5>
    							</div>
    						</li>
    
    					<?php endforeach; ?>
    					</ul>

    http://wordpress.org/extend/plugins/co-authors-plus/

  2. Joshua
    Member
    Posted 1 year ago #

    I still do not have a solution for this. Can anyone help me out?

  3. Joshua
    Member
    Posted 11 months ago #

    Anyone?

  4. Pablo @ vDevices
    Member
    Posted 11 months ago #

    Which theme are you using?

  5. Joshua
    Member
    Posted 11 months ago #

    Hi Pablo, I developed my own custom theme!

  6. Pablo @ vDevices
    Member
    Posted 11 months ago #

    Have you followed the instructions, from Incorporate Co-Authors Plus template tags into your theme?

  7. Joshua
    Member
    Posted 11 months ago #

    Pablo, I'm still a bit confused because I'm trying to get the field AIM from the authors. But this below is not working, any suggestions?


    <ul class="workers">
    <?php $coauthors = get_coauthors(); ?>
    <?php foreach( $coauthors as $coauthor ): ?>

  8. <?php $userdata = get_userdata( $coauthor->ID ); ?>
    <?php if( $userdata->user_description ) echo $userdata->user_description; ?>
    <div class="avatars">
    <?php echo get_avatar( $coauthor->user_email, '80' ); ?>
    </div>
    <div class="workerinfo">
    <h5><?php echo $coauthor->display_name; ?></h5>
    <?php echo $coauthor->user_email; ?>
    <?php echo $coauthor->aim; ?>
    </div>
  9. <?php endforeach; ?>

  • Pablo @ vDevices
    Member
    Posted 11 months ago #

    What version of WordPress are you using?

  • Joshua
    Member
    Posted 11 months ago #

    Hi Pablo,

    Thanks but I think I already got it.

    Thanks anyway :)

    - Joshua

  • Topic Closed

    This topic has been closed to new replies.

    About this Plugin

    About this Topic

    Tags