Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thank you i have created a new topic on this here

    Hi Brajesh Singh,

    I’m using ‘echo xprofile_get_field_data’ inside a <li>

    like below :

    `<li><i class=”fas fa-birthday-cake” aria-hidden=”true”></i>
    <span class=”<?php echo(xprofile_get_field_visibility_level( ‘Date of Birth’, $memberId)); ?>”><?php echo xprofile_get_field_data( ‘Date of Birth’, $memberId); ?></span></li>
    <li><i class=”fas fa-link” aria-hidden=”true”></i>
    <span><?php echo xprofile_get_field_data( “Gender”, $memberId); ?></span></li>
    <li><i class=”fas fa-map-marker-alt” aria-hidden=”true”></i>
    <span><?php echo xprofile_get_field_data( ‘My Location’, $memberId); ?></span></li>`

    how to control visibility for the fields above?
    i have tried below code but no luck, please help
    <span class="<?php echo(xprofile_get_field_visibility_level( 'Date of Birth', $memberId)); ?>"><?php echo xprofile_get_field_data( 'Date of Birth', $memberId); ?></span>

    Thanks in advance

    • This reply was modified 5 years, 4 months ago by Ramakrishnan.
    • This reply was modified 5 years, 4 months ago by Ramakrishnan.
Viewing 2 replies - 1 through 2 (of 2 total)