Description
If you are looking to insert custom user data stored in a user’s WP Profile into LearnDash Certificates (such as Company Name, Student/Staff ID, Membership Number, etc.) then this plugin will help you to accomplish that task!
You can grab any custom field from the User Profile and turn it into a shortcode which can be used in a certificate or WP post/page. Using this plugin alongside the free Woocommerce addon ‘Flexible Checkout Fields for WooCommerce‘, you could for example include custom fields for your users to complete during checkout which can then printed onto their LearnDash certificate once they have completed their course!
Once installed just follow the instructions below, a video detailing these steps can be viewed here.
The quickest way to find this out (in Chrome/Firefox) is to right click on the Bold text label on the left hand side of the profile screen and choose ‘Inspect’ or ‘Inspect Element’, you should now see the HTML code that generates this label, make a note of the value written in the <label for=”COPY THIS VALUE”> tag.
[user_meta key=PASTE VALUE HERE]
Here is an example of what your shortcode may look like using Flexible Checkout Fields:
[user_meta key=billing_association_id_345]
(FCF always seems to generate a random number towards the end of the LABEL FOR value but thankfully this is the same for every user.)
بهروز کلهر –
Hi, it’s not working with xprofile field ids. I’m using buddyboss platform in which you can add fields to profiles and they go to the extended profile tap. I used the fields id in as the key but it’s not working.
Chris Hodgson –
The plugin may not work with certain plugins like this which either implement their own customised shortcode systems or like in this case are using a separated user profile system.
If possible we would recommend using the following free user profile field extension plugins for use with our add-on for LearnDash – https://en-gb.wordpress.org/plugins/flexible-checkout-fields/, https://en-gb.wordpress.org/plugins/extra-user-details/
Christian Seyboth –
Works great! Thank you!