- This topic has 3 replies, 3 voices, and was last updated 8 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember – Custom Field Display On Page
Tagged: custom field, shortcode, WP eMember
I’ve used the Form Builder to create some custom fields upon user registration. How do I programmatically access these fields and display them once a user logs in? Particularly I’d like to display them in the eMember widget.
Thanks,
J
To display the custom fields in the User Profile page:
https://support.tipsandtricks-hq.com/forums/topic/emember-display-custom-field
To programatically read a custom field value, via shortcode or PHP variable:
Thanks – how do I determine what the shortcode would be for a custom field? I’m using the eMember Profile Display Extended AddOn and I would like to show one of my custom fields in the directory grid.
Right now I have a custom field that is only showing a blank column.
[emember_extended_summary_list fields=”first_name,last_name,alias,email,company_name,hrci-certifications” style=”2″]
The hrci-certifications is my custom field, but I don’t know how to determine the shortcode value.
Thanks,
J
You directly edit the page (the profile listing page or the details page) then enter the custom field name in the shortcode manually.
You can use a simple one word field as a custom field to test the listing page first. You can temporarily create a custom field with a name like “test” then use it in there. See if the value shows correctly.
Field names with multiple words should be joined with an underscore. For example: if the label of a custom field is “Your School” then use the following in the shortcode to shows that field:
Your_School