I am trying to dynamically insert a custom field (course ID) into a shortcode.
The shortcode is as follows
I am using a custom field to insert course ID for each page and the usual way to call the custom field is:
<?php getCustomField('Course ID'); ?>
Does anyone know if it is possible to combine the two so I can dynamically call the course ID within the shortcode?
I have tried a few approaches but nothing seems to work.
Thanks in advance.