• new to this plugin.

    I’m starting to make a custom profile.php page and don’t know how to pull over specific fields…

    Say I created a custom field with a unique meta tag Areas_of_Service2
    How do I display/print that field on the user page? What is the exact code I should use to display the field Areas_of_Service2 ?

    Any help would be greatly appreciated. Thanks in advance 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Shane Taylor

    (@propertunity)

    Do I use this code?

    <?php
    add_filter( ‘um_get_field__{$key}’, ‘my_get_field’, 10, 1 );
    function my_get_field( $data ) {
    // your code here
    return $data;
    }

    What do i put in “your code here” section?

    Thread Starter Shane Taylor

    (@propertunity)

    and to be clear, I can get a text field to print on the custom profile.php page using the following: <?php echo um_user(‘License_Number’); ?>

    But when I try the same code on a custom field that uses checkboxes as input, the value I get is the word “array” and not several checkboxes I checked…

    So what exact code would I use for that?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how to display custom fields’ is closed to new replies.