Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Member list

This topic is resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • ozier-lafontaine
    Participant
    • 2 Topics
    • 4 Posts
    @romy

    Hi,

    On the member list page, how can I add more informations on the thumbnails sections for example gender / age / city… ? I just managed to add the firstname. These settings are available in a module ?

    Thanks

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Bonjour ozier-lafontaine,

    Par défaut, seuls les noms, prénoms, ages et localisations sont affichés dans la liste des membres. Pour qu’ils s’affichent il faut générer les champs par défaut fournis par le thème en allant dans Users > Profiles fields et en cliquant sur “Generate Default Fields” (voir screenshot).

    Si vous souhaitez afficher d’autres champs que ceux là, ce n’est malheureusement pas possible de le faire directement via le thème pour l’instant. Cependant, si vous me donnez les noms précis de ces champs, je peux vous fournir un morceau de code qui les affichera dans la liste de membres.

    Bien à vous,

    ozier-lafontaine
    Participant
    • 2 Topics
    • 4 Posts
    @romy

    Merci pour votre reponse . si possible je veux bien le morceaux de code a modifier . J aimerais afficher le champs metier en dessous du nom et prenom
    Cdt Romy

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Bonjour ozier-lafontaine,

    Voici le morceau de code pour afficher le champ supplémentaire:

    add_action( 'gwangi_buddypress_member_xprofile_custom_fields', 'gwangi_buddypress_member_occupation',  0 );
    
    if ( ! function_exists( 'gwangi_buddypress_member_occupation' ) ) :
    	/**
    	 * Print the HTML for the Occupation XProfile Field in the BP Member Directory.
    	 */
    	function gwangi_buddypress_member_occupation() {
    		if ( function_exists( 'xprofile_get_field_data' ) ) :
    			$occupation   = xprofile_get_field_data( 'Occupation', bp_get_member_user_id() );
    			$allowed_html = array(
    				'a' => array(
    					'href' => array(),
    					'rel'  => array(),
    				),
    			);
    			if ( ! empty( $occupation ) ) : ?>
    				<div class="bp-member-xprofile-custom-field bp-member-occupation"><?php echo wp_kses( $occupation, $allowed_html ); ?></div>
    				<?php
    			endif;
    		endif;
    	}
    endif;

    Vous pouvez remplacer 'Occupation' par le nom du champ à afficher.

    Pour ajouter un morceau de code dans votre site, nous vous recommandons d’utiliser le plugin Code Snippet (https://wordpress.org/plugins/code-snippets/).

    Bien à vous,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Member list’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site