Hello
I created a user registration form. In case of the notification mail I cannot output the user's first and last name.
In the form I use this:
[cred_field field="last_name" class="form-control" output="bootstrap" required="true"]
In notification mail:
[wpv-user field="last_name" user_id="%%USER_USERID%%"]
This is not working. The strange thing is that if I add it from Fields and Views button it adds this code:
[wpv-user field="user_lastname" user_id="%%USER_USERID%%"]
The filed name is different. But neither works. All other user fields work.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Jozsef
I did some testing and was able to reproduce the problem just as you describe it.
I have escalated this so my colleagues can debug further, and I'll let you know when I have any progress to report.
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Jozsef
The documentation is wrong.
Instead of user_id="%%USER_USERID%% please use id="%%USER_USERID%%.
I tested that and it worked.
I've made a number of suggestions about how this should be improved (not least, fixing the documentation), but in the meantime making that change will resolve the problem.
Hi Nigel
Thanks for the quick response. For the user fileds it is working like in the documentation:
[types usermeta='site' user_is_author='true' user_id="%%USER_USERID%%"][/types]
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Good to know, thank you, I'll add that clarification to the internal ticket I created.
Your solution is working. Thank you!
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Good. We'll update the documentation to clarify what is required.