[umbrella_ld_course_info]

Version Added 2.78

Summary

This shortcode will display progress of all LearnDash courses for which selected child user is enrolled to.

Shortcode Examples

We need to create 2 pages, one on which we’ll list all the child accounts and one on which we’ll place [umbrella_ld_course_info] shortcode.

You’ll first create a page that lists the children and use code such as this (Here’s more info on the [umbrella_list_children] shortcode):

[umbrella_list_children]
[memb_contact contact_id= fields=FirstName]
<a href="https://yourwebsite.com/child-progress-page?contact_id={{contact.id}}">View LearnDash Progress</a>
%%disconnect.button%%
[/umbrella_list_children]

Once you’ve created that, you’ll now need to create “/child-progress-page/” (the page we are linking to in the example above) and on that page, you need to simply put this:

[umbrella_ld_course_info]

You are free to create any page you like, we used “/child-progress-page/” as an example.

When a parent clicks on the link on the first page you’ve created (the link that has been generated from the first example above), the child’s contact ID will be appended to the URL and our shortcode will pick it up and display course info for that user on the second page, which is “/child-progress-page/” in this example..

Screenshot of how it looks like:

Additional Information

This shortcode by default pulls the Infusionsoft contact ID of the user to display from the URL with ?contact_id=xxxxx.

The user has to be the parent to view the child, so  you can’t use it to view other people’s  course info, just your own or your child’s info.

We use the LearnDash function, so modifications to their [ld_course_info] template will take effect here as well.

Here’s one of the styled table examples. Please note that we use [umbrella_list_children] shortcode as well:

<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

tr:nth-child(even) {
background-color: #dddddd;
}
</style>

<table>
<tr>
<th>First</th>
<th>Last</th>
<th>Email</th>
<th>LearnDash</th>
<th>Disconnect</th>
</tr>
[umbrella_list_children]
<tr>
<td>[memb_contact contact_id={{contact.id}} fields=FirstName]</td>
<td>[memb_contact contact_id={{contact.id}} fields=LastName]</td>
<td>[memb_contact contact_id={{contact.id}} fields=Email]</td>
<td><a href="https://yourwebsite.com/child-progress-page/?contact_id={{contact.id}}">
<input type="button" value="View Progress" />
</a></td>
<td>%%disconnect.button%%</td>
</tr>
[/umbrella_list_children]
</table>