Tell us what you are trying to do?
I have been using Toolset to build my website, creating CPT and templates along the way. My customer has decided that she would like to use the "Amelia" plugin to add appointment booking. It all looks great, but I have a an issue that isn't solvable via Amelia, but might be via Toolset. I need to decide if this is the case and hoping you can advise me in which direction to proceed.
When an employee is added in the Amelia plugin they are automatically assigned an ID.
Using the ID, one can create calendars and bookings for each employee. On my template I'd like to be able to add functionality so that the employee-specific calendar is displayed.
The shortcode for Amelia isn't going to work because it has the ID in it already. Here is an example of an Amelia shortcode:
[ameliabooking employee=1] if you want to show the booking form for the employee with ID 1
So I need the ID to be called into the code according to the specific employee that the user is currently viewing.
Do you think this is possible?
Is there any documentation that you are following?
Is the Employee ID the same as the user id ? Secondly does the [ameliabooking employee=1] shortcode accepts another shortcode as a parameter ?
If it doesn't then we won't be able to achieve the goal. My advice here is to get in touch with the amelia bookings team and check with them to see if you can use a shortcode as a parameter. This way its possible to dynamically provide the shortcode with the employee id.
Is the Employee ID the same as the user id ?
Unfortunately not. But I can "map a wordpress user to an employee".
Secondly does the [ameliabooking employee=1] shortcode accepts another shortcode as a parameter ?
Would that be shortcode inside shortcode? I think it might do as I have seen a limited number of others creating shortcodes for Amelia.