• Resolved wilsonh

    (@wilsonh)


    Hi,
    I’m a complete beginner as far as WordPress databases go so apologies in advance if ‘usermeta’ isn’t the way to do this…..

    I have a membership site (uses Optimizepress) and once my members are logged in, I want them to be able to save data unique to them.

    1. I intend on having 10 boxes each with a save button.
    2. User will add an ID in each box (ID’s are just affiliate ID’s from elsewhere).
    3. ID’s are then retrieved from the database to be displayed on the page below each box. EG: “Your ID is …..” (I understand I would need some sort of PHP echo command to retrieve data from db.)

    My questions..
    1. Am I right in thinking that usermeta is the place to store each user’s info that they save?
    2. Will the database allow this? (adding approx 10 unique fields relating to the user)
    3. Can anybody recommend a plugin that will allow me to do this?
    4. Is this typically what a form is for? I have always understood a form to be for signing up to something.

    I do not want to give users access to the wordpress profile tab. I will just display the info on a page.

    Hope this makes sense. Like I said, this side of WordPress is completely new to me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. For a small amount of data I would say yes. For larger amounts of data then maybe not as it becomes difficult to optimise the tables. From your description I would suggest using the usermeta is the right way to go.

    2. Yes the database will allow this, if you would like to have a go at adding this functionality yourself then take a look at the meta data api -> https://codex.wordpress.org/Metadata_API.

    3. Sorry I cannot recommend a plugin but if you do a search on user meta in the plugins repository there looks like there are plenty of options to choose from.

    4. An HTML form is simply a mechanism which allows someone using a web application to submit data to the web server where the web application can process the data in some way. See http://www.w3schools.com/html/html_forms.asp for more information.

    Hope this helps.

    Thread Starter wilsonh

    (@wilsonh)

    thank you for your reply TheHandOfCod!
    I’ve been on the road for a few days and have just noticed your reply.
    I will report back shortly!

    Thread Starter wilsonh

    (@wilsonh)

    In the end I found a solution in the software (amember) that I am using with my membership site. It allows you to create new user fields then add them to newly created forms. I can then display these saved values with amember shortcodes. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about usermeta’ is closed to new replies.