Adding website to profile shortcode

Posted in
Tags

Hi,

I’m having real trouble with the adding new fields for both the registration and profile shortcodes. I’ve used to extra fields shortcode, but when the user registers none of the additional information is saved in the user profile.

Also, how would I go about adding a website field to the user profile?

Thanks, plugin works great besides! So easy to customize for my needs!

Afzaal

11 Responses to Adding website to profile shortcode

  1. Afzaal December 5, 2013 at 3:32 pm #

    Hi Kento,

    Notice you just registered. I’ve not upgraded the account to affiliate so you can access the affiliate area at:

    http://www.thinkupthemes.com/my-account/affiliate-center/

    Thanks,

    Afzaal

    • kento December 5, 2013 at 4:05 pm #

      Cool, this looks great! I see the graphs seem to have an issue but I think you posted a comment on that here, will have a look at this.

      Do you see the additional field’s value on the related user account?

      • Afzaal December 5, 2013 at 4:15 pm #

        Hi Kento,

        Yes I saw the additional fields for the support account. Is there a way I can output this info in the profile shortcode? I’ll do some testing to figure out why the additional fields only seem to be showing for a new registered account, and not when an existing user subsequently signs up to be an affiliate.

        Thanks for all your help!

        • kento December 5, 2013 at 4:30 pm #

          I think in this case, the easiest would be to just pull the values with get_user_meta, rather than using an additional plugin to display user meta using shortcodes.

          Glad to help!

          • Mat June 4, 2014 at 8:39 am #

            Hi Kento, i’m searching solution to display user profile with extra shortcode.

            Based on your answer above, I’ve to pull the values with get_user_meta. Could you help me how I can implement this solution in wordpress page?

            Thank you.

            • kento June 4, 2014 at 10:45 am #

              Hi Mat,

              You mean to display the values? It’s quite easy, if you have a look at the get_user_meta function reference in the Codex, you will find an example – I would make sure to sanitize the output though (the example that displays the last_name value doesn’t).

              Cheers

  2. Afzaal December 5, 2013 at 2:48 pm #

    Thanks for the quick reply Kento. At the moment I’ve added 1 additional field “Monthly Page Views” using the shortcode below:

    [affiliates_registration_extra_fields extra_fields_text=”monthly_page_views|Monthly Page Views” terms_post_id=”9817″]

    This can be found at the following link:

    http://www.thinkupthemes.com/affiliates/

    Thanks in advance!

    Afzaal

    • kento December 5, 2013 at 3:56 pm #

      Thanks Afzaal, the shortcode looks ok. I’ve also made a quick test here using the exact same version and it’s recording the additional field info in the user profile that is related to the affiliate account.

      Maybe it’s because you would expect to see the additional fields in the affiliate’s profile rather than the user profile? Note that these additional fields are added to the user account related to the affiliate, not the affiliate entry itself.

      • Afzaal December 5, 2013 at 4:07 pm #

        Hi Kento,

        I noticed your pageview input in the members area. I tried testing it again by registering to the site using the affiliate form. In this case the details show in the user profile.

        However, if an existing user signs up to the affiliate program then the extra fields info doesn’t show in the user profile. Seems odd. I’ll continue testing.

        Also, is there a way to make the [affiliates_registration_extra_fields] editable for an already registered user? Some of my users signed up with just an email and username. This then prevents them from registering as it required a first and last name.

        Thanks!

        • kento December 5, 2013 at 4:20 pm #

          Thanks Afzaal,

          For an existing user, they need to complete their profile details so they can sign up using the registration form. As we have the name as a requirement, it’s designed to force them to fill this in. What you can do is to point them to their profile to complete the missing name info.

          Cheers

  3. kento December 5, 2013 at 2:41 pm #

    Hi Afzaal,

    Please post the current way you are using the shortcode, it could be possible that you’re using incorrect syntax so let’s check that first. Can you also post a link to the site so we can have a look at the registration form?

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share