Viewing 3 replies - 1 through 3 (of 3 total)
  • john

    (@pawansaini312)

    yes,is there any shortcode for show the custom field in user profile
    please let us know

    Here you go guys. Scroll down to Case 5 here, additional examples:
    https://www.marcocimmino.net/cimy-wordpress-plugins/cimy-user-extra-fields/documentation/

    Just paste this directly into your page template (enclosed in php tags) and change value of ‘IMAGE’ to whatever your custom field name is.

    $user = wp_get_current_user();

    // is there someone logged?
    if ($user->ID) {
    $value = cimy_uef_sanitize_content(get_cimyFieldValue($user->ID, ‘IMAGE’));
    echo ‘description_here’;
    }

    This will return the value of that field

    I tried to do this one but it doesn’t work? especially inside the if statement. Though it display the value when not using the if statement but displays the value for the first data in the list instead of the currently login user

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show custom fields on frontend’ is closed to new replies.