• Hi All!

    I would like to ask you how can I go about getting text data from user and then displaying this custom per user text on their account page. Can I use custom fields for this? Should I write my own plugin or something similar already exist?

    I will appreciate your help. I don’t expect full solution, just looking to be pointed a direction. I did some research, but couldn’t find anything about this specific problem.

    Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • To clarify, this is a user who is logged into WordPress and the account page you mentioned is wp-admin/profile.php?

    If so, you’re looking to add additional fields to that profile page for the user to edit?

    Thread Starter toho

    (@toho)

    Thank you for reply. Yes user is logged into WordPress, but account page is just a normal page that I modified, so it displays user account information. I have disabled access for users to wp-admin area.

    I am making simple coaching website, the idea is that user can input his goal in a form of a text and it will display on his account page or training page (both being normal WordPress pages)

    You can read and store any additional information via get_user_meta and update_user_meta respectively.

    Since you must have access to the user ID on your account page, that info can be retrieved via something like:

    get_user_meta($user_id, $key);

    And you save/update it by using:

    update_user_meta($user_id, $key, $value);

    You can add additional fields on the user’s profile page using the edit_user_profile hook and then save them using the edit_user_profile_update hook.

    Thread Starter toho

    (@toho)

    Thank you very much! This will be much easier than I originally thought 🙂

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

The topic ‘Display custom user text’ is closed to new replies.