Support » Plugin: Ultimate Member - User Profile & Membership Plugin » Display value of Custom Field in front

  • Resolved stephnikel

    (@stephnikel)


    Hello, i’m working on a website on local actually.

    I create some custom fields in my form (e.g. a multi-select called “Jobs”).
    Everything ok in my BO.

    Actually i’m check to override the members-grid.php and display my custom field on front, but i’m not able to echo it.

    I check since several hours forums, docs and web, i can’t find a way.
    Have you any suggestions to have something like this :

    <?php echo um_user(‘jobs’); ?> This one display nothing.

    Thanks for any help.

    • This topic was modified 7 months, 2 weeks ago by stephnikel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Well,

    actually if i put this : <?php var_dump (um_user(‘jobs’)); ?>

    it returns : array (size=1)
    0 => string ‘Designer’ (length=11)

    I’m probably not far. Going on.

    Got it i think!

    For those who are interested :

    $value = um_user( ‘jobs’ );
    if(is_array($value)) {
    $value = implode(‘,’, $value);
    echo $value;
    }
    ———————
    Return on my web page : Designer

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display value of Custom Field in front’ is closed to new replies.