Show custom fields

This topic contains 3 replies, has 3 voices, and was last updated by Avatar Pie Register 4 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10002645
    Avatar
    freek neerhoff
    Participant

    Hi. i use the pie-register plugin and i love it. There is one question i liked to ask.
    I made a registration form with some custom fields like address, zipcode, city, male/female. Is it possible to show the added custom fields with a function?

    I want to show a list of users (name, address, zipcode, city and m/f) on a WordPress page.
    Something like this

    <?php
    show_users ()
    {
       echo 'name,address,zipcode, city,sex';
    }
    ?>

    I looked everywhere in my SQL database but i cannot find the fields..
    I this possible?
    THX Freek

    #10002652
    Avatar
    Pie Register
    Participant

    Hello Freek,

    You will need to use custom function or get_user_meta function retrieve those information.
    PR uses WP user meta table to store custom User Fields Data. You can get to the Fields name (that could be tricky – PR not used the Fields label) then you may query wp get_user_meta($user_id, $key, $single); function to retrieve those information!

    Thanks

    #10002880
    Avatar
    francesco gorgo
    Participant

    Hi. i use the pie-register plugin and i love it. There is one question i liked to ask.
    I made a registration form with some custom fields like address, zipcode, city,
    I want to extrapolate the variable address and separate cities for the notification user.

    the plug-in shows this
    %pie_address_4%

    which variable to use to divide the city address?
    thanks so much

    #10002881
    Avatar
    Pie Register
    Participant

    Hello,

    You may want to use separate/Individual Text Fields for Address and City
    then.

    Thanks
    Mohsin

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

The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.