- This topic has 1 reply, 2 voices, and was last updated 12 years, 12 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 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 Troubleshooting › Shortcode/PHP to access custom fields
Hi,
I setup a custom field named “WP Member Test Field” and entered a value of “WP Member Test Field value” by editing the member profile (under wp emember ->members).
How do I use a shortcode (or php) to display this field in a post, page or widget?
something like [wp_member_test_field] or $var = wp_member_test_field;
is what I’m looking to accomplish.
I’ve seen the two docs on your support site but did not see a solution this very simple inquiry, please advise.
Thanks,
Sam
There is no direct shortcode or PHP function available to access the custom field manually. We will look into adding a function for this.
Update: You can now use the method explained here to access and show any details of the logged-in member: