Results 1 to 2 of 2

Thread: Integrating User Form Data with Text

  1. #1
    tinroofrusted is offline Hello World
    Join Date
    May 2010
    Posts
    1

    Default Integrating User Form Data with Text

    Hello all,

    This is my first post on WP Tavern. I have a question about how to get a user's form data to appear on a page. Suppose I have two users, Tom and Sam. I will set up user fields both of them that show their names, addresses, company names, etc.

    I want to set up a page where, when either user is logged in his name and address details can be displayed in a paragraph with some text. So in Tom's case, the paragraph would look as follows:
    This pages shows some data for Tom and his company ABC Company. The address of ABC Company is 123 Elm Street.
    If Sam were logged in, he would see:
    This page shows some data for Sam and his company XYZ Company. The address of XYZ Company is 987 Oak Street.
    Are there any plugins that could accomplish this task? If not, can anyone give me a clue as to how to go about getting this to work?

    Many thanks.

    Tin Roof

  2. #2
    rilwis's Avatar
    rilwis is offline Hello World
    Join Date
    Apr 2010
    Posts
    9

    Default

    I think you can use the function get_userdata. You can search for "displaying author bio" for an example of showing user's data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •