Skip to:
Content
Pages
Categories
Search
Top
Bottom

CIMY User Fields

  • @welshlamb10

    Participant

    Hi,

    I am not using buddy press registration pages.

    So a lot of my field data is not showing on user profile.

    I would like to transfer the cimy extra user fields over to buddy press but do not know where to begin.

    If possible I want to display these fields on the user profiles in the table.

    I have added the following code to boss-child/buddypress/members/single/member-header.php

    $user = wp_get_current_user();
    
    // is there someone logged?
    if ($user->ID) {
    $value = cimy_uef_sanitize_content(get_cimyFieldValue($user->ID, 'ROLE'));
    echo 'description_here';
    }		 
    		 
    		 do_action( 'bp_profile_header_meta' );

    It did not work. If anyone could help out, it would be appreciated.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • @welshlamb10

    Participant

    I’ve just discovered it was the wrong file. I am now editing ‘profile-wp.php’

    I have added this line of code

    			<?php if ( $value = cimy_uef_sanitize_content(get_cimyFieldValue($user->ID, 'PAYROLLID'))->payrollid ) :?>
    					
    					<tr id="PAYROLLID">
    					<td class="label"><?php _e( 'Payroll ID' ); ?></td>
    					<td class="data"><?php $value->payrollid; ?></td>
    					</td> 
    					</tr>
    					
    					<?php endif; ?> 

    But need more help as it still is not working 🙁

    @welshlamb10

    Participant

    FIXED PLEASE CLOSE

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CIMY User Fields’ is closed to new replies.
Skip to toolbar