Title: Displaying custom profile fields using Mingle
Last modified: August 20, 2016

---

# Displaying custom profile fields using Mingle

 *  [KeenanPayne](https://wordpress.org/support/users/keenanpayne/)
 * (@keenanpayne)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/displaying-custom-profile-fields-using-mingle/)
 * Okay, so I am using the Mingle plugin to add some networking functionality for
   a website I am creating for a client. I am having Mingle handle displaying user
   profiles and friends, but WordPress to actually register users and put in fields.
 * Mingle has the ability to add custom fields (ex: Twitter, Facebook, etc). However,
   there is now way to display these custom fields individually. So I have added
   my own custom fields to WordPress using the _functions.php_ file:
 *     ```
       /* Add Profile Fields */
       function add_new_contactmethods($methods){
       	$methods['twitter'] = 'Twitter';
   
       	return $methods;
       }
   
       add_filter('user_contactmethods','add_new_contactmethods');
       ```
   
 * and am displaying them **within one of the Mingle templates** (mingle/classes/
   views/mngl-profiles/profile.php).
 * Here is the code I am using to display them:
 *     ```
       <?php if ( get_the_author_meta( 'twitter' ) ) { ?>
       	<a href="http://twitter.com/<?php the_author_meta( 'twitter' ); ?>" title="Follow @<?php the_author_meta( 'twitter' ); ?> on Twitter">
       		<div class="tile bg-color-twitter icon">
       			<div class="tile-content">
       				<img src="<?php echo THEME_DIR; ?>/images/icons/twitter.png" alt="Twitter" class="socialIcon" />
       			</div>
       			<div class="brand">
       				<span class="name">@<?php the_author_meta( 'twitter' ); ?></span>
       			</div>
       		</div><!-- .tile -->
       	</a>
       <?php } ?>
       ```
   
 * Now whenever I go to a profile page that is generated by _mingle_, ([http://website.com/admin](http://website.com/admin)
   or [http://website.com/dylan](http://website.com/dylan)), whoever is currently
   logged in at the moment will have _their_ custom fields shown, not to the user
   whose profile is being shown.
 * Does that make sense? I can provide more code or elaborate if need be. I would
   really, really appreciate any and all help I can receive on this, the project
   is really time-sensitive.
 * Thanks,
    Keenan
 * [http://wordpress.org/extend/plugins/mingle/](http://wordpress.org/extend/plugins/mingle/)

Viewing 1 replies (of 1 total)

 *  [Curt44319](https://wordpress.org/support/users/curt44319/)
 * (@curt44319)
 * [13 years ago](https://wordpress.org/support/topic/displaying-custom-profile-fields-using-mingle/#post-3367311)
 * I had a similar challenge.
    Ended up writing the code/hack to query the database
   directly myself.

Viewing 1 replies (of 1 total)

The topic ‘Displaying custom profile fields using Mingle’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mingle.svg)
 * [WP Mingle](https://wordpress.org/plugins/mingle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mingle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mingle/)
 * [Active Topics](https://wordpress.org/support/plugin/mingle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mingle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mingle/reviews/)

## Tags

 * [profile](https://wordpress.org/support/topic-tag/profile/)
 * [profile fields](https://wordpress.org/support/topic-tag/profile-fields/)
 * [social-networking](https://wordpress.org/support/topic-tag/social-networking/)

 * 1 reply
 * 2 participants
 * Last reply from: [Curt44319](https://wordpress.org/support/users/curt44319/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/displaying-custom-profile-fields-using-mingle/#post-3367311)
 * Status: not resolved