• Resolved Michael Ott

    (@mikeyott)


    Using your plugin, I’ve added a Phone field with the name input_box_phone. I made this field mandatory during registration.

    When I view the user profile in WP Admin, I can see the field is there and it does have a value (the phone number) and if I inspect the element I can see the name is actually user_registration_input_box_phone.

    What I need to do is display that phone number on the front-end (I need to put it into one of my templates). I looked all through your docs and couldn’t find a solution.

    Thanks in advance.

    • This topic was modified 1 year, 2 months ago by Michael Ott.
    • This topic was modified 1 year, 2 months ago by Michael Ott.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @mikeyott,

    Could you please let us know the code you added to your site to display the input field on your frontend? We will look into it and get back to you accordingly.

    Regards!

    Thread Starter Michael Ott

    (@mikeyott)

    That’s what I’m asking.

    What I need to do is display that phone number on the front-end (I need to put it into one of my templates). I looked all through your docs and couldn’t find a solution.

    How do I display the field value on the front-end? If you could provide some PHP it would be helpful.

    • This reply was modified 1 year, 2 months ago by Michael Ott.
    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @mikeyott,

    Since we have a frontend listing premium addon for such purpose, for more details, please check this link https://wpeverest.com/wordpress-plugins/user-registration/frontend-listing.

    With the free version plugin, displaying the user information is impossible because it requires identifying the user. If the user logs in to your site and wants to see details on a custom template, it might be possible to display that specific field information on your custom templates.

    According to the WordPress Support community guidelines, we can not discuss the premium features here because this support forum is for free plugin users.

    If you are interested in our premium feature, please go through this link https://wpeverest.com. You will find the live chat option to contact our support representative.

    Regards!

    Thread Starter Michael Ott

    (@mikeyott)

    Thanks for that.

    A premium plugin just to return a single piece of user data is irresponsible.

    I figured it out anyway (with the get_user_meta function), and it was pretty straight forward when I realised how the plugin is storing the data.

    For anyone who wants to know:

    $phone = get_user_meta( $user_id, 'user_registration_input_box_phone' , true );
    echo $phone;

    Have a great day. Consider the matter closed.

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @mikeyott,

    Thank you for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Return a field value on the front-end’ is closed to new replies.